mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #594] [MERGED] Use inflector in EntityGenerator #8424
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:master📝 Commits (1)
30fd22aUse 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.