Last active
August 6, 2017 05:50
-
-
Save bitwombat/173f78c83028345a4477bfcf86ca5368 to your computer and use it in GitHub Desktop.
Different queries, same result. Any reason to care?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$qb ->from('Event e') | |
->where($qb->expr()->isMemberOf(':personId', 'e.peopleAttending')) | |
->setParameter('personId', 3) | |
; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$qb ->from('Event e') | |
->join('e.peopleAttending', 'p') | |
->where('p.id = :personId') | |
->setParameter('personId', 3) | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment