I wondering about this line
->leftJoin(
'AppBundle\Entity\UserGroups',
'UserGroups',
\Doctrine\ORM\Query\Expr\Join::WITH,
'User.group_id = UserGroups.id'
);
This works fine, the result is okay.
But when I replace ::WITH
with ::ON
this causes an error:
Error: Expected Doctrine\ORM\Query\Lexer::T_WITH, got 'ON'
So what are difference between ::WITH
and ::ON
?