예제 #1
0
 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;
 }
예제 #2
0
 public function findAll(Criteria $criteria = null)
 {
     if ($criteria == null) {
         $criteria = new Criteria();
     }
     return $this->getStore()->fetchAll($criteria->getQuery($this->getKind()), $criteria->params);
 }