Left join ON condition AND other condition syntax in Doctrine Left join ON condition AND other condition syntax in Doctrine sql sql

Left join ON condition AND other condition syntax in Doctrine


You can try this :

use Doctrine\ORM\Query\Expr;->leftJoin('a.installations', 'i', Expr\Join::WITH, 'i.page = :page')->setParameter('page', $page)

See function leftJoin in doc: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/query-builder.html#high-level-api-methods