質問

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top