mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #691] [MERGED] IDENTITY function fix for Joined Inheritance #8563
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/691
Author: @powturns
Created: 6/12/2013
Status: ✅ Merged
Merged: 6/12/2013
Merged by: @guilhermeblanco
Base:
master← Head:master📝 Commits (2)
529064aModified identity function to work with joined inheritance tables.ed7a4bdFix typo in test name📊 Changes
2 files changed (+19 additions, -1 deletions)
View changed files
📝
lib/Doctrine/ORM/Query/AST/Functions/IdentityFunction.php(+4 -1)📝
tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php(+15 -0)📄 Description
In a joined inheritance scenario, the identity function implementation assumed the foreign key column was on the table corresponding to the (sub)class named in the select statement. If the relation was on a super-class incorrect sql was generated.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.