DDC-398: AnnotationExporter does not generate nice PHP classes #497

Closed
opened 2026-01-22 12:40:27 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 9, 2010).

Originally assigned to: @jwage on GitHub.

Jira issue originally created by user @guilhermeblanco:

We should update AnnotationExporter to generate nice PHP outputs, including doc blocks.
This would require the DBAL\Type to have a method called Type::getPhpTypeName(), to allow retrieval in docblocks.

Originally created by @doctrinebot on GitHub (Mar 9, 2010). Originally assigned to: @jwage on GitHub. Jira issue originally created by user @guilhermeblanco: We should update AnnotationExporter to generate nice PHP outputs, including doc blocks. This would require the DBAL\Type to have a method called Type::getPhpTypeName(), to allow retrieval in docblocks.
admin added the Improvement label 2026-01-22 12:40:27 +01:00
admin closed this issue 2026-01-22 12:40:28 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 14, 2010):

Comment created by shurakai:

Please see my mail to the devlist, dated 2010/01/10, topic "[doctrine-dev] Doctrine2: Use CodeGenerator classes for generators?".

I think this is still preferable.

@doctrinebot commented on GitHub (Mar 14, 2010): Comment created by shurakai: Please see my mail to the devlist, dated 2010/01/10, topic "[doctrine-dev] Doctrine2: Use CodeGenerator classes for generators?". I think this is still preferable.
Author
Owner

@doctrinebot commented on GitHub (Mar 20, 2010):

Comment created by @jwage:

I added \Doctrine\ORM\Tools\EntityGenerator which is an API for generating entity classes from ClassMetadataInfo instances. It is used in the AnnotationExporter and the GenerateEntitiesTask now. It isn't as generic as the Zend Code Generator component. Though if we wanted to we could make the EntityGenerator use that Zend Framework component to generate the code. It may be overkill though. Comments?

@doctrinebot commented on GitHub (Mar 20, 2010): Comment created by @jwage: I added \Doctrine\ORM\Tools\EntityGenerator which is an API for generating entity classes from ClassMetadataInfo instances. It is used in the AnnotationExporter and the GenerateEntitiesTask now. It isn't as generic as the Zend Code Generator component. Though if we wanted to we could make the EntityGenerator use that Zend Framework component to generate the code. It may be overkill though. Comments?
Author
Owner

@doctrinebot commented on GitHub (Mar 20, 2010):

Comment created by romanb:

I think our current code-generation needs are simple enough that we can handle them ourselves without a new third-party dependency. Once/if it gets out of control, we can still make the switch.

@doctrinebot commented on GitHub (Mar 20, 2010): Comment created by romanb: I think our current code-generation needs are simple enough that we can handle them ourselves without a new third-party dependency. Once/if it gets out of control, we can still make the switch.
Author
Owner

@doctrinebot commented on GitHub (Mar 20, 2010):

Comment created by @beberlei:

I also worked with that CodeGenerator for Proxy Generation in Zend Entity and it has some problematic issues that are not addressed yet.

@doctrinebot commented on GitHub (Mar 20, 2010): Comment created by @beberlei: I also worked with that CodeGenerator for Proxy Generation in Zend Entity and it has some problematic issues that are not addressed yet.
Author
Owner

@doctrinebot commented on GitHub (Apr 23, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Apr 23, 2010): 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#497