DDC-3463: Generated enitities have singular variable names for many to many relationships #4271

Closed
opened 2026-01-22 14:38:36 +01:00 by admin · 1 comment
Owner

Originally created by @doctrinebot on GitHub (Dec 25, 2014).

Originally assigned to: @Majkl578 on GitHub.

Jira issue originally created by user johnj112:

Running doctrine:generate:entities from the command line gives entities that have instance variables arrays, but their names are singular. For example if there are many "tools" associated with a "toolbox" via a many to one or many to many realationship, the toolbox class should have an array variable named "tools". It has an array but the name of it is "tool" instead of "tools". The name of the variable should be singular for one to one relationships and plural for whenever its an array

Originally created by @doctrinebot on GitHub (Dec 25, 2014). Originally assigned to: @Majkl578 on GitHub. Jira issue originally created by user johnj112: Running doctrine:generate:entities from the command line gives entities that have instance variables arrays, but their names are singular. For example if there are many "tools" associated with a "toolbox" via a many to one or many to many realationship, the toolbox class should have an array variable named "tools". It has an array but the name of it is "tool" instead of "tools". The name of the variable should be singular for one to one relationships and plural for whenever its an array
admin added the ImprovementWon't Fix labels 2026-01-22 14:38:36 +01:00
admin closed this issue 2026-01-22 14:38:36 +01:00
Author
Owner

@Majkl578 commented on GitHub (Dec 19, 2017):

EntityGenerator and mentioned command are going to be removed in Doctrine 3.0.

@Majkl578 commented on GitHub (Dec 19, 2017): EntityGenerator and mentioned command are going to be removed in Doctrine 3.0.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4271