ZF-Commons / ZfcUserDoctrineORM

Doctrine2 ORM storage adapter for ZfcUser.
BSD 3-Clause "New" or "Revised" License
89 stars 92 forks source link

Fatal error: Cannot redeclare class ZfcUserDoctrineORM\Entity\User #35

Closed bgallagher closed 10 years ago

bgallagher commented 12 years ago

I get a "Fatal error: Cannot redeclare class ZfcUserDoctrineORM\Entity\User" when trying to generate database scheme from the command line.

I see an identical issue marked as resolved here: https://github.com/ZF-Commons/ZfcUserDoctrineORM/issues/2

Like a comment in the issue above, if I comment out ZfcUserDoctrineORM\Entity\User from ZfcUserDoctrineORM's autoload_classmap and then it works fine.

It would seem that Zend is loading the class using the classmap, but then doctrine isn't able to find it, and attempts to load again by cycling through registered autoloaders.

vagovszky commented 11 years ago

I have same problem on ZF 2.0.4 dev

Danielss89 commented 10 years ago

Closing this for now. Please reopen if you still have the issue.