I wrote simply ZF2 console based application. There is source: https://github.com/vagovszky/console. App is designed for import courses from XML into database. Everything works fine until app is packed into phar.
If I pack this application into phar archive (as described in README.md) and execute it, error occured:
Doctrine\ORM\Mapping\MappingException Class "Database\Entity\Ligues" is not a valid entity or mapped super class.
I do not know how fix this issue, thanks for help.
This is a known issue: Doctrine's AnnotationReader isn't able to read annotations from classes within a PHAR package.