[PR #568] [CLOSED] Fixed plural variable names to singular when generating add or remove methods for entities #8386

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/568
Author: @alexcarol
Created: 2/4/2013
Status: Closed

Base: masterHead: fix/generate-entities-plural


📝 Commits (1)

  • 7e35e23 Changed generateEntityStubMethod so that variable names in add and remove methods and in the description are singular too.

📊 Changes

2 files changed (+34 additions, -11 deletions)

View changed files

📝 lib/Doctrine/ORM/Tools/EntityGenerator.php (+5 -2)
📝 tests/Doctrine/Tests/ORM/Tools/EntityGeneratorTest.php (+29 -9)

📄 Description

Changed generateEntityStubMethod so that variable names in add or remove methods are singular too

Edited tests for EntityGenerator so that variable names are checked too


🔄 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/568 **Author:** [@alexcarol](https://github.com/alexcarol) **Created:** 2/4/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix/generate-entities-plural` --- ### 📝 Commits (1) - [`7e35e23`](https://github.com/doctrine/orm/commit/7e35e2396728352e8ce1e42c174b0351e1f3f205) Changed generateEntityStubMethod so that variable names in add and remove methods and in the description are singular too. ### 📊 Changes **2 files changed** (+34 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Tools/EntityGenerator.php` (+5 -2) 📝 `tests/Doctrine/Tests/ORM/Tools/EntityGeneratorTest.php` (+29 -9) </details> ### 📄 Description Changed generateEntityStubMethod so that variable names in add or remove methods are singular too Edited tests for EntityGenerator so that variable names are checked too --- <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:41 +01:00
admin closed this issue 2026-01-22 15:59:42 +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#8386