Skip to content
This repository has been archived by the owner on Jan 26, 2018. It is now read-only.

Commit

Permalink
Making possible to chain conditions after the result was iterated, th…
Browse files Browse the repository at this point in the history
…is opens the possibility of using named scopes
  • Loading branch information
lorenzo committed Aug 5, 2011
1 parent 9e971c7 commit a0b9fe4
Show file tree
Hide file tree
Showing 4 changed files with 922 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
2 changes: 1 addition & 1 deletion Lib/Model/CakeDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ public function find($type, $query = array()) {
}

if ($type === 'all') {
return $query->getQuery();
return $query;
} else {
if ($this->findMethods[$type] === true) {
return $this->{'_find' . ucfirst($type)}('after', $query, $results);
Expand Down
Loading

0 comments on commit a0b9fe4

Please sign in to comment.