mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3977: BaseEntityPersister, different behavior between conditionStatement and selectStatement #4857
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 (Nov 2, 2015).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user razorness:
BasicEntityPersister::getSelectConditionStatementColumnSQL() needs to check for inheritance type before considering the usage of $classmetadata->fieldMappings[$field]['inherited'].
Otherwise BasicEntityPersister will use another table alias as the rest of the generated SQL statement. I came across this problem while I tried to extend an entity in another symfony bundle to get new associations working with it.
Just try following:
I cannot declare associations directly in Foo because existence of associations is not guaranteed in all scenarios where I use Foo.
Supporting such scenario would be great for modular systems on code and database level.