Affects Version/s: Git Master
Fix Version/s: None
Security Level: All
When trying to apply a [NOT] NULL condition on LEFT JOINed association. It ends with an error.
"Cannot add having condition on a non result variable."
->leftJoin('r.players', 'players', 'WITH', 'players = :player')
->where('players IS NULL');
It was working 3 month ago. But then, this commit broke it.
Or in other words if this is not a bug. How to test if the collection does not contain let's say a user with ID 5 (AND XX OR YY) with DQL/queryBuilder API? IN SQL I would just simply LEFT JOIN it with ON condition and then i would test it for existence using IS NULL in WHERE condition. How to do this using DQL when the pasted example ends with an error?