1
0
mirror of synced 2025-02-02 13:31:45 +03:00

fixed undefined variable

changed $conditions to $condition so $isConditionalJoin is working
This commit is contained in:
Thomas Rothe 2017-08-12 11:33:11 +02:00 committed by GitHub
parent 22546a3811
commit 741f1db198

View File

@ -1143,7 +1143,7 @@ class SqlWalker implements TreeWalker
$dqlAlias = $joinDeclaration->aliasIdentificationVariable;
$tableAlias = $this->getSQLTableAlias($class->table['name'], $dqlAlias);
$condition = '(' . $this->walkConditionalExpression($join->conditionalExpression) . ')';
$isUnconditionalJoin = empty($conditions);
$isUnconditionalJoin = empty($condition);
$condExprConjunction = ($class->isInheritanceTypeJoined() && $joinType != AST\Join::JOIN_TYPE_LEFT && $joinType != AST\Join::JOIN_TYPE_LEFTOUTER && $isUnconditionalJoin)
? ' AND '
: ' ON ';