Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2325

[GH-594] Use inflector in EntityGenerator

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      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.

        Activity

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: