DDC-1694: Entity Generator uses wrong DataTypes for docBlocks #2133

Closed
opened 2026-01-22 13:42:18 +01:00 by admin · 1 comment
Owner

Originally created by @doctrinebot on GitHub (Mar 11, 2012).

Jira issue originally created by user rdohms:

When using the Doctrine\ORM\Tools\EntityGenerator, largely used by Symfony, the wrong data types are used in the docblocks. For example:

@param text $description

Text needs to be converted to "string" in this case. So there needs to be proper Doctrine Data Type to php type as well as the conversion to DBAL that is already done.

Examples:
smallint => int
bigint => int
text => string
datetime => \DateTime,
datetimetz, => \DateTime
etc...

Originally created by @doctrinebot on GitHub (Mar 11, 2012). Jira issue originally created by user rdohms: When using the Doctrine\ORM\Tools\EntityGenerator, largely used by Symfony, the wrong data types are used in the docblocks. For example: ``` @param text $description ``` Text needs to be converted to "string" in this case. So there needs to be proper Doctrine Data Type to php type as well as the conversion to DBAL that is already done. Examples: smallint => int bigint => int text => string datetime => \DateTime, datetimetz, => \DateTime etc...
admin added the Bug label 2026-01-22 13:42:18 +01:00
admin closed this issue 2026-01-22 13:42:18 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 5, 2012):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (May 5, 2012): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2133