Skip to content

Commit

Permalink
Implementing 'count' query type in \data\Model, misc. refactoring…
Browse files Browse the repository at this point in the history
…s in MongoDB adapter, added support for count and group queries. Refactored `\data\model\Query` to support dynamic settings. Refactored `Query` setters to also return values. Added support methods for grouping and aggregation.
  • Loading branch information
nateabele authored and gwoo committed Mar 7, 2010
1 parent 90ddd60 commit 5aebd00
Show file tree
Hide file tree
Showing 13 changed files with 302 additions and 179 deletions.
11 changes: 11 additions & 0 deletions libraries/lithium/data/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,17 @@ abstract public function update($query, array $options = array());
*/
abstract public function delete($query, array $options = array());

/**
* Returns the list of methods which format values imported from `Query` objects. Should be
* overridden in subclasses.
*
* @see lithium\data\model\Query
* @return array
*/
public function methods() {
return get_class_methods($this);
}

/**
* A method which can be optionally implemented to configure a model class.
*
Expand Down
Loading

0 comments on commit 5aebd00

Please sign in to comment.