added outer left join
This commit is contained in:
parent
9c59ed5891
commit
c84099508f
@ -1033,7 +1033,7 @@ class SqlWalker implements TreeWalker
|
|||||||
switch (true) {
|
switch (true) {
|
||||||
case ($joinDeclaration instanceof \Doctrine\ORM\Query\AST\RangeVariableDeclaration):
|
case ($joinDeclaration instanceof \Doctrine\ORM\Query\AST\RangeVariableDeclaration):
|
||||||
$class = $this->em->getClassMetadata($joinDeclaration->abstractSchemaName);
|
$class = $this->em->getClassMetadata($joinDeclaration->abstractSchemaName);
|
||||||
$condExprConjunction = $class->isInheritanceTypeJoined() && $joinType != AST\Join::JOIN_TYPE_LEFT
|
$condExprConjunction = $class->isInheritanceTypeJoined() && $joinType != AST\Join::JOIN_TYPE_LEFT && $joinType != AST\Join::JOIN_TYPE_LEFTOUTER
|
||||||
? ' AND '
|
? ' AND '
|
||||||
: ' ON ';
|
: ' ON ';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user