mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1253: Classes with @Entity annotation are not recognized as entities #1577
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jul 6, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user azimkhan:
Hi, I just updated my all Doctrine packages from version 2.0.0 to 2.1 and with the same application configuration it doesn't recognize classes with @Entity annotation as doctrine entites.
When I try to create databases from command line it says "No metadata classes to process" . Running in browser gives me "Class xxx\xxx is not a valid entity or mapped super class"
Seems like the problem is in Doctrine Common 2.1
@doctrinebot commented on GitHub (Jul 6, 2011):
Comment created by @beberlei:
Did you follow the UPDATE_TO_2_1 description as suggested in the release post?
https://github.com/doctrine/doctrine2/blob/master/UPGRADETO_21
@doctrinebot commented on GitHub (Jul 6, 2011):
Comment created by azimkhan:
Sorry, didn't notice that. I have edited source code as described and now it works fine. Thank you very much!
@doctrinebot commented on GitHub (Jul 6, 2011):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Jul 10, 2011):
Comment created by uopjohnson:
I was having this problem as well - it resulted from the ORM package not updating from pear. Just putting a note here in case someone else gets stuck - make sure everything is at version 2.1.