Пример #1
0
 /**
  * Wrap One's find_many method to return
  * an array of instances of the class associated
  * with this wrapper instead of the raw One class.
  *
  * @return Array
  */
 public function find_many()
 {
     $results = parent::find_many();
     foreach ($results as $key => $result) {
         $results[$key] = $this->_createModelInstance($result);
     }
     return $results;
 }