We ran in to an issue with the auto joiner picking the wrong alias, for example:
(relationshipA.subRelationship.id = ? OR relationshipB.subRelationship.id = ?)
If subRelationship are both backed by the same doctrine entity then the 2nd part (relationshipB.subRelationship) of the clause won't join through relationshipB but will re-use the join from relationshipA.
We modified the auto joiner to simply track the parent alias.
We ran in to an issue with the auto joiner picking the wrong alias, for example:
If
subRelationship
are both backed by the same doctrine entity then the 2nd part (relationshipB.subRelationship
) of the clause won't join throughrelationshipB
but will re-use the join fromrelationshipA
.We modified the auto joiner to simply track the parent alias.