Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FIX Remove unnecessary DISTINCT from ManyManyList->removeAll()

Breaks Postgres if the innermost query has an ORDER BY statement as well
  • Loading branch information...
commit ff3b63f2a9a0aae3a123d024fe6a2834772ea68c 1 parent f44d5b3
@chillu chillu authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  model/ManyManyList.php
View
1  model/ManyManyList.php
@@ -180,6 +180,7 @@ public function removeAll() {
$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.
Please sign in to comment.
Something went wrong with that request. Please try again.