mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #1060] [MERGED] [DDC-3170] SimpleObjectHydrator fails to get discriminator column from mapped SQL result #9105
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/1060
Author: @ureimers
Created: 6/17/2014
Status: ✅ Merged
Merged: 6/17/2014
Merged by: @guilhermeblanco
Base:
master← Head:master📝 Commits (2)
7aa1c0aCreate DDC3170Test.phpa7aa634Fixed mapping of discriminator column📊 Changes
2 files changed (+115 additions, -0 deletions)
View changed files
📝
lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php(+5 -0)➕
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3170Test.php(+110 -0)📄 Description
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.
type34instead oftype) than this alias wasn't correctly resolved when retrieving the discriminator column from the SQL result set.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.