added methods to MongoDriver for custom commands, findAndModify, count
This commit is contained in:
@ -13,6 +13,11 @@
|
||||
abstract class MongoModel extends Model
|
||||
{
|
||||
|
||||
public function count($query = array(), $limit = 0, $skip = 0)
|
||||
{
|
||||
return $this->db->count($this->table(), $query, $limit, $skip);
|
||||
}
|
||||
|
||||
public function find($condition = array())
|
||||
{
|
||||
return $this->db->find($this->table(), $condition);
|
||||
|
Reference in New Issue
Block a user