Commit 9c66bde2 authored by jarekj's avatar jarekj Committed by Steve Müller

Update QueryBuilder.php

parent d9c289f8
......@@ -1148,10 +1148,10 @@ class QueryBuilder
$sql = '';
if (isset($this->sqlParts['join'][$fromAlias])) {
if (array_key_exists($join['joinAlias'], $knownAliases)) {
throw QueryException::notUniqueAlias($join['joinAlias'], $knownAliases);
}
foreach ($this->sqlParts['join'][$fromAlias] as $join) {
if (array_key_exists($join['joinAlias'], $knownAliases)) {
throw QueryException::notUniqueAlias($join['joinAlias'], $knownAliases);
}
$sql .= ' ' . strtoupper($join['joinType'])
. ' JOIN ' . $join['joinTable'] . ' ' . $join['joinAlias']
. ' ON ' . ((string) $join['joinCondition']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment