public function findAll(Criteria $criteria = null) { if ($criteria == null) { $criteria = new Criteria(); } $rows = $this->_db->fetchAll($criteria->getQuery($this->_table), $criteria->params); $result = array(); foreach ($rows as $row) { $result[] = self::getInstance()->loadFromArray($row); } return $result; }
public function findAll(Criteria $criteria = null) { if ($criteria == null) { $criteria = new Criteria(); } return $this->getStore()->fetchAll($criteria->getQuery($this->getKind()), $criteria->params); }