Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2951

[GH-931] Allow overriding getShortName() for discriminator map

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

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

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

      Message:

      This will allow the keys for entries in a generated discriminator map to be customised. E.g. to include namespace

      For example, if I had more than one entity with the same name, but used for different purposes, I could customise `getShortName` to include the namespace (or indeed just return the class name with no modifications), which would allow them both to work.

        Activity

        Hide
        Doctrine Bot added a comment -

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

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-931] was closed: https://github.com/doctrine/doctrine2/pull/931

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: