Created
June 18, 2018 13:33
-
-
Save IvanAlekseevichPopov/345827032c403bf7ae098d0e1ae10633 to your computer and use it in GitHub Desktop.
doctrine join with on other side of unidirectional relation
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
<?php | |
$qb = $this->createQueryBuilder('country'); | |
return $qb | |
->join(Source::class, 'source', Join::WITH, 'source.country = country') | |
->getQuery() | |
->getResult(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment