This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Making possible to chain conditions after the result was iterated, th…

…is opens the possibility of using named scopes
  • Loading branch information...
lorenzo committed Aug 5, 2011
1 parent 9e971c7 commit a0b9fe4c65bd36762de6379034401bbde686d019
Showing with 922 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 Lib/Model/CakeDocument.php
  3. +893 −0 Lib/Query/QueryProxy.php
  4. +27 −1 Test/Case/Model/CakeDocumentTest.php
View
@@ -0,0 +1 @@
+.DS_Store
@@ -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);
Oops, something went wrong.

0 comments on commit a0b9fe4

Please sign in to comment.