Skip to content

Commit

Permalink
[IndexBundle] add query alias to user specific condition
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Apr 11, 2018
1 parent 4dbf22d commit f73029a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ protected function addUserSpecificConditions(QueryBuilder $queryBuilder, $exclud
if ($fieldName !== $excludedFieldName && is_array($condArray)) {
foreach ($condArray as $cond) {
$cond = $this->worker->renderCondition($cond, 'q');
$queryBuilder->andWhere('q.o_id IN (SELECT DISTINCT src FROM ' . $relationalTableName . ' WHERE ' . $cond . ')');
$queryBuilder->andWhere('q.o_id IN (SELECT DISTINCT src FROM ' . $relationalTableName . ' q WHERE ' . $cond . ')');
}
}
}
Expand Down

0 comments on commit f73029a

Please sign in to comment.