DDC-728: Inherited (JOINED) associations referred on DQL on owning side doesn't refer to correct table column #894

Open
opened 2026-01-22 12:54:26 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 30, 2010).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user @guilhermeblanco:

Based on code instrospection, it seems that SQL generated is wrong when you attempt to do something like this:

SELECT m FROM CompanyManager m WHERE m.InheritedSingleValuedAssociation = ?1

It seems the column that refers to the association points to wrong table (apparently it points to CompanyManager table).
If everything works, we still need to have coverage to it (we have none).

Originally created by @doctrinebot on GitHub (Jul 30, 2010). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user @guilhermeblanco: Based on code instrospection, it seems that SQL generated is wrong when you attempt to do something like this: ``` SELECT m FROM CompanyManager m WHERE m.InheritedSingleValuedAssociation = ?1 ``` It seems the column that refers to the association points to wrong table (apparently it points to CompanyManager table). If everything works, we still need to have coverage to it (we have none).
admin added the Bug label 2026-01-22 12:54:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#894