[PR #594] [MERGED] Use inflector in EntityGenerator #8424

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/594
Author: @v3labs
Created: 2/28/2013
Status: Merged
Merged: 3/1/2013
Merged by: @guilhermeblanco

Base: masterHead: master


📝 Commits (1)

  • 30fd22a Use inflector for add/remove methods

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 lib/Doctrine/ORM/Tools/EntityGenerator.php (+2 -2)

📄 Description

The way EntityGenerator handles add/edit methods is wrong.

Example:

class SomeEntity {
/* @ORM\OneToMany(...) */
private $entries;
}

In this case the generator creates

addEntrie and removeEntrie methods. They should be be addEntry and removeEntry

This patch fixes that.


🔄 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/594 **Author:** [@v3labs](https://github.com/v3labs) **Created:** 2/28/2013 **Status:** ✅ Merged **Merged:** 3/1/2013 **Merged by:** [@guilhermeblanco](https://github.com/guilhermeblanco) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`30fd22a`](https://github.com/doctrine/orm/commit/30fd22a2604249c0a8e6b20cb844fb49cea677cc) Use inflector for add/remove methods ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Tools/EntityGenerator.php` (+2 -2) </details> ### 📄 Description The way EntityGenerator handles add/edit methods is wrong. Example: class SomeEntity { /\* @ORM\OneToMany(...) */ private $entries; } In this case the generator creates addEntrie and removeEntrie methods. They should be be addEntry and removeEntry This patch fixes that. --- <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:52 +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#8424