DDC-1046: Configurable/overridable code generation templates for entities and repositories classes automatic generation #1303

Open
opened 2026-01-22 13:09:09 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Feb 25, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user mikhus:

Initial proposal discussed in doctrine-user groups: http://groups.google.com/group/doctrine-user/browse_thread/thread/10ed814339429c3e?hl=en

Required features are:

  1. Possibility to override default Doctrine's code generation templates, which are hard-coded for the moment within EntityGenerator & EntityRepositoryGenerator classes
  2. Possibility to extend Repository classes from a custom base class. For the moment it is also hard-coded inside EntityRepositoryGenerator class to be extended from Doctrine\ORM\EntityRepository

Attached pull request with possible implementation is here: https://github.com/doctrine/doctrine2/pull/30

Originally created by @doctrinebot on GitHub (Feb 25, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user mikhus: Initial proposal discussed in doctrine-user groups: http://groups.google.com/group/doctrine-user/browse_thread/thread/10ed814339429c3e?hl=en Required features are: 1. Possibility to override default Doctrine's code generation templates, which are hard-coded for the moment within EntityGenerator & EntityRepositoryGenerator classes 2. Possibility to extend Repository classes from a custom base class. For the moment it is also hard-coded inside EntityRepositoryGenerator class to be extended from Doctrine\ORM\EntityRepository Attached pull request with possible implementation is here: https://github.com/doctrine/doctrine2/pull/30
admin added the New Feature label 2026-01-22 13:09:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1303