mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1454: SQL error when requesting state for unknown joined inheritance entity with natural identifier #1824
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 (Oct 25, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user gedrox:
When having unknown (not cached by UnitOfWork) joined inheritance entity with natural identifier (GENERATOR_TYPE_NONE), method UnitOfWork::getEntityState() fails with SQL error:
Will attach testcase right after creating the issue.
@doctrinebot commented on GitHub (Oct 25, 2011):
Comment created by gedrox:
Test case.
@doctrinebot commented on GitHub (Oct 26, 2011):
Comment created by gedrox:
Possible change diff for file Doctrine/ORM/Persisters/BasicEntityPersister.php from Doctrine ORM 2.1.2.
Idea is to use the main table (not inherited one) if the column is a part of ID. So, I guess, it will be in both tables.
@doctrinebot commented on GitHub (Oct 27, 2011):
Comment created by @beberlei:
Fixed
@doctrinebot commented on GitHub (Oct 27, 2011):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/9dce97f7e9423d16194e