Domanda

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.

È stato utile?

Soluzione

This is a known issue: Doctrine's AnnotationReader isn't able to read annotations from classes within a PHAR package.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top