mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3171: [GH-1060] [DDC-3170] SimpleObjectHydrator fails to get discriminator column from mapped SQL result #3932
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
type34instead oftype) than this alias wasn't correctly resolved when retrieving the discriminator column from the SQL result set.@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 @doctrinebot:
A related Github Pull-Request [GH-1060] was closed:
https://github.com/doctrine/doctrine2/pull/1060