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

Closed
opened 2026-01-22 14:31:41 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Jun 17, 2014).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @doctrinebot:

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]%28http://www.doctrine-project.org/jira/browse/DDC-3170%29).

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.

Originally created by @doctrinebot on GitHub (Jun 17, 2014). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @doctrinebot: 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)](http://www.doctrine-project.org/jira/browse/[DDC-3170]%28http://www.doctrine-project.org/jira/browse/DDC-3170%29). 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.
admin added the Bug label 2026-01-22 14:31:41 +01:00
admin closed this issue 2026-01-22 14:31:41 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jun 17, 2014):

Comment created by ureimers:

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.

@doctrinebot commented on GitHub (Jun 17, 2014): Comment created by ureimers: I created [[DDC-3170](http://www.doctrine-project.org/jira/browse/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.
Author
Owner

@doctrinebot commented on GitHub (Jun 17, 2014):

Comment created by @doctrinebot:

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

@doctrinebot commented on GitHub (Jun 17, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-1060] was closed: https://github.com/doctrine/doctrine2/pull/1060
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3932