mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 17:33:15 +02:00
DDC-1777: BasicEntityPersister::exists() creates broken SQL with inheritance #2235
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 (Apr 14, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user liwo:
The entity persister creates a sql query like SELECT 1 FROM table t0 WHERE t1.id = ?1 when trying to verify a subclass object exists in the database.
This cannot work as t1 from the where clause is not defined. Our particular case was with joined table inheritance.
Attached patch fixes the issue for us.
@doctrinebot commented on GitHub (Apr 14, 2012):
@doctrinebot commented on GitHub (May 27, 2012):
Comment created by @beberlei:
I can't reproduce this. Can you provide the mapping details?
@doctrinebot commented on GitHub (Oct 6, 2012):
Comment created by @beberlei:
Cannot reproduce and no feedback given.
@doctrinebot commented on GitHub (Oct 6, 2012):
Issue was closed with resolution "Cannot Reproduce"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/5d80c2956a2203430399