Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of ureimers:
This PR fixes 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.
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.
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1060] was closed: