Affects Version/s: 2.4.2
Fix Version/s: None
Security Level: All
The problem refers to a following situation:
You have 2 classes that use a quite simple inheritance and an interface:
When we configure the ResolveTargetEntityListener the following way:
when using the entity manager to find an entity:
we'll get a following Doctrine\DBAL\DBALException:
An exception occurred while executing 'SELECT t1.id AS id2 FROM bclass_table_name t1 WHERE t0.id = ?' with params :
SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.id' in 'where clause'
As you can see the column names are generated properly but the WHERE clause has an invalid refference to t0 table (should be t1).