DDC-1253: Classes with @Entity annotation are not recognized as entities #1577

Closed
opened 2026-01-22 13:18:46 +01:00 by admin · 4 comments
Owner

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

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
admin added the Bug label 2026-01-22 13:18:46 +01:00
admin closed this issue 2026-01-22 13:18:47 +01:00
Author
Owner

@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 @beberlei: Did you follow the UPDATE_TO_2_1 description as suggested in the release post? https://github.com/doctrine/doctrine2/blob/master/UPGRADE*TO_2*1
Author
Owner

@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): 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!
Author
Owner

@doctrinebot commented on GitHub (Jul 6, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Jul 6, 2011): Issue was closed with resolution "Fixed"
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1577