DDC-3757: [GH-1417] Generator: Associations annotations improvement #4607

Closed
opened 2026-01-22 14:45:53 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jun 6, 2015).

Originally assigned to: @Majkl578 on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of Soullivaneuh:

Url: https://github.com/doctrine/doctrine2/pull/1417

Message:

  • Replace Doctrine\Common\Collections\Collection by RelatedEntity[]|\Doctrine\Common\Collections\ArrayCollection
  • Add use statement for related entities and ArrayCollection
  • Remove FQN annotation usage

This is a proposal for association mapping annotations improvement.

In a nutshell, I replaced Collection by ArrayCollection on getter annotation because ArrayCollection is used on constructor. I also add RelatedEntity[] annotation which is more IDE friendly.

I'm planning to add use statement too for FQN usage avoiding.

If you this made some regressions, we could maybe introduce it as an option.

Regards

Originally created by @doctrinebot on GitHub (Jun 6, 2015). Originally assigned to: @Majkl578 on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of Soullivaneuh: Url: https://github.com/doctrine/doctrine2/pull/1417 Message: - [ ] Replace `Doctrine\Common\Collections\Collection` by `RelatedEntity[]|\Doctrine\Common\Collections\ArrayCollection` - [ ] Add `use` statement for related entities and ArrayCollection - [ ] Remove FQN annotation usage This is a proposal for association mapping annotations improvement. In a nutshell, I replaced `Collection` by `ArrayCollection` on getter annotation because `ArrayCollection` is used on constructor. I also add `RelatedEntity[]` annotation which is more IDE friendly. I'm planning to add `use` statement too for FQN usage avoiding. If you this made some regressions, we could maybe introduce it as an option. Regards
admin added the Improvement label 2026-01-22 14:45:53 +01:00
admin closed this issue 2026-01-22 14:45:54 +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#4607