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

Open
opened 2026-01-22 14:38:34 +01:00 by admin · 0 comments
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:34 +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#4268