public function parseFilters($filters = array()) { return $this->logic(ModelStore::logic($this->filters, $filters)); }
public function filter($filters = array(), $start = 0, $limit = 0) { if ($this->has && $limit) { $ids = $this->collect($this->id, $filters, $start, $limit); $filters = ModelStore::logic($filters, array(array($this->id, "in", $ids))); $limit = 0; } $records = parent::filter($filters, $start, $limit); if ($this->has) { $records = $this->_has($records); } return $records; }