[PR #520] [CLOSED] Fix for Doctrine\ORM\Tools\EntityGenerator not picking the correct singular of some plurals #8319

Closed
opened 2026-01-22 15:59:22 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/520
Author: @jbergler
Created: 11/22/2012
Status: Closed

Base: masterHead: master


📝 Commits (2)

  • 677d42f Fixed creation of in generateEntityStubMethod() to deal with the singular of ies -> y
  • 91743d0 Added some tests for the correct plural->singular conversion (also books now have birthdays)

📊 Changes

2 files changed (+32 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/Tools/EntityGenerator.php (+5 -1)
📝 tests/Doctrine/Tests/ORM/Tools/EntityGeneratorTest.php (+27 -0)

📄 Description

When generating stub method names words like entries became entrie when they should have become entry.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/520 **Author:** [@jbergler](https://github.com/jbergler) **Created:** 11/22/2012 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`677d42f`](https://github.com/doctrine/orm/commit/677d42f37e709477ced16f48519deb04300aa0e8) Fixed creation of in generateEntityStubMethod() to deal with the singular of ies -> y - [`91743d0`](https://github.com/doctrine/orm/commit/91743d0b543ff3e01cf079f5a0d5d8a4e45942eb) Added some tests for the correct plural->singular conversion (also books now have birthdays) ### 📊 Changes **2 files changed** (+32 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Tools/EntityGenerator.php` (+5 -1) 📝 `tests/Doctrine/Tests/ORM/Tools/EntityGeneratorTest.php` (+27 -0) </details> ### 📄 Description When generating stub method names words like entries became entrie when they should have become entry. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:59:22 +01:00
admin closed this issue 2026-01-22 15:59:23 +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#8319