DDC-2325: [GH-594] Use inflector in EntityGenerator #2916

Closed
opened 2026-01-22 14:07:17 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Feb 28, 2013).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user @beberlei:

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

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

Message:

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.

Originally created by @doctrinebot on GitHub (Feb 28, 2013). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user @beberlei: This issue is created automatically through a Github pull request on behalf of v3labs: Url: https://github.com/doctrine/doctrine2/pull/594 Message: 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.
admin added the Improvement label 2026-01-22 14:07:17 +01:00
admin closed this issue 2026-01-22 14:07:17 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 1, 2013):

Comment created by @beberlei:

A related Github Pull-Request [GH-594] was closed
https://github.com/doctrine/doctrine2/pull/594

@doctrinebot commented on GitHub (Mar 1, 2013): Comment created by @beberlei: A related Github Pull-Request [GH-594] was closed https://github.com/doctrine/doctrine2/pull/594
Author
Owner

@doctrinebot commented on GitHub (Mar 1, 2013):

Comment created by @ocramius:

merged

@doctrinebot commented on GitHub (Mar 1, 2013): Comment created by @ocramius: merged
Author
Owner

@doctrinebot commented on GitHub (Mar 1, 2013):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Mar 1, 2013): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (May 2, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-594] was closed:
https://github.com/doctrine/dbal/pull/594

@doctrinebot commented on GitHub (May 2, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-594] was closed: https://github.com/doctrine/dbal/pull/594
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2916