Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-3171

[GH-1060] [DDC-3170] SimpleObjectHydrator fails to get discriminator column from mapped SQL result

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • 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 ureimers:

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

      Message:

      This PR fixes DDC-3170(http://www.doctrine-project.org/jira/browse/DDC-3170).

      When querying a simple entity which uses single table- or class table inheritance using simple object hydration (``AbstractQuery::HYDRATE_SIMPLEOBJECT``), the mapped discriminator column was not retrieved correctly.

      If the column got an alias during result set mapping other than it's actual name (e.g. ``type34`` instead of ``type``) than this alias wasn't correctly resolved when retrieving the discriminator column from the SQL result set.

        Activity

        Hide
        Ulf Reimers added a comment -

        I created DDC-3170 for this and put it into the PR like stated in https://github.com/doctrine/doctrine2/blob/master/CONTRIBUTING.md#doctrinebot-tickets-and-jira.

        Unfortunately the BOT still created this issue here which can be removed in my opinion.

        Show
        Ulf Reimers added a comment - I created DDC-3170 for this and put it into the PR like stated in https://github.com/doctrine/doctrine2/blob/master/CONTRIBUTING.md#doctrinebot-tickets-and-jira . Unfortunately the BOT still created this issue here which can be removed in my opinion.
        Hide
        Doctrine Bot added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated: