modified classes for GeneralException thrown

This commit is contained in:
Anton Grebnev
2011-12-06 14:05:18 +04:00
parent 47b5843ef6
commit 71cc211c4f
9 changed files with 51 additions and 26 deletions

View File

@ -34,6 +34,14 @@ abstract class MongoModel extends Model
}
/**
* @TODO: test method
*/
public function deleteAll($query = array())
{
$this->db->delete($this->table(), $query);
}
/**
* @TODO: check for limits (if just one record needed)
*/
protected function fetchField($data, $params = array(), $field, $cache_key = null)