1
0
mirror of synced 2025-01-20 07:21:40 +03:00

DDC-1227 - Fix regression in QueryBuilder::add() due to Expr\From refactoring.

This commit is contained in:
Benjamin Eberlei 2011-06-25 10:25:22 +02:00
parent 7367e255ae
commit 0dd1dc20c8

View File

@ -986,7 +986,7 @@ class QueryBuilder
foreach ($fromParts as $from) { foreach ($fromParts as $from) {
$fromClause = (string) $from; $fromClause = (string) $from;
if (isset($joinParts[$from->getAlias()])) { if ($from instanceof Expr\From && isset($joinParts[$from->getAlias()])) {
foreach ($joinParts[$from->getAlias()] as $join) { foreach ($joinParts[$from->getAlias()] as $join) {
$fromClause .= ' ' . ((string) $join); $fromClause .= ' ' . ((string) $join);
} }