FIX Remove unnecessary DISTINCT from ManyManyList->removeAll()

Breaks Postgres if the innermost query has an ORDER BY statement as well
This commit is contained in:
Ingo Schommer 2013-03-28 18:16:50 +01:00
parent f44d5b311e
commit ff3b63f2a9

View File

@ -180,6 +180,7 @@ class ManyManyList extends RelationList {
$from = $query->getFrom();
unset($from[$this->joinTable]);
$query->setFrom($from);
$query->setDistinct(false);
// Use a sub-query as SQLite does not support setting delete targets in
// joined queries.