mirror of
https://github.com/doctrine/orm.git
synced 2026-04-27 00:18:04 +02:00
DDC-1821: Doctrine tool generates classes who's meta data cannot be read by annotation driver #2292
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 (May 15, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user jonathanpete:
I have xml files defining entities. These get turned into classes via doctrine tool.
The doctrine tool generates metadata with "Doctrine\ORM\Mapping" proceeding the metaname.
for example:
use Doctrine\ORM\Mapping as ORM;
/****
*
*/
This breaks the annotation reader.
If I manually change the class to look like:
/****
*
*/
Everything works happily.
@doctrinebot commented on GitHub (Jun 8, 2012):
Comment created by @ocramius:
Not a bug. It is suggested to use the AnnotationReader instead of the SimpleAnnotationReader.
@doctrinebot commented on GitHub (Jul 4, 2012):
Comment created by @beberlei:
You have to set $generator->setAnnotationPrefix("");
@doctrinebot commented on GitHub (Jul 4, 2012):
Issue was closed with resolution "Invalid"