[DDC-2325] [GH-594] Use inflector in EntityGenerator Created: 28/Feb/13  Updated: 02/May/14  Resolved: 01/Mar/13

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.4
Security Level: All

Type: Improvement Priority: Major
Reporter: Benjamin Eberlei Assignee: Guilherme Blanco
Resolution: Fixed Votes: 0
Labels: None


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

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


The way EntityGenerator handles add/edit methods is wrong.


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.

Comment by Benjamin Eberlei [ 01/Mar/13 ]

A related Github Pull-Request [GH-594] was closed

Comment by Marco Pivetta [ 01/Mar/13 ]


Comment by Doctrine Bot [ 02/May/14 ]

A related Github Pull-Request [GH-594] was closed:

Generated at Tue Jul 28 01:44:44 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.