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

Open
doctrinebot opened this Issue Jun 17, 2014 · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user @doctrinebot:

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

Url: #1060

Message:

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.

@doctrinebot

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

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1060] was closed:
#1060

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment