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

        Benjamin Eberlei created issue -
        Marco Pivetta made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Benjamin Eberlei [ beberlei ] Guilherme Blanco [ guilhermeblanco ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Fix Version/s 2.4 [ 10321 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: