Set 'order' to false to prevent issues with postgres

See: https://github.com/cakephp/cakephp/pull/2421#issuecomment-30074971
This commit is contained in:
Rachman Chavik 2013-12-08 16:40:22 +07:00
parent 98e645a1ea
commit 2d5a153c0d

View file

@ -2700,6 +2700,7 @@ class Model extends Object implements CakeEventListener {
$ids = $this->find('all', array_merge(array(
'fields' => "DISTINCT {$this->alias}.{$this->primaryKey}",
'order' => false,
'recursive' => 0), compact('conditions'))
);