ORM::find_many PHP 메소드

find_many() 공개 메소드

Tell the ORM that you are expecting multiple results from your query, and execute it. Will return an array of instances of the ORM class, or an empty array if no rows were returned.
public find_many ( ) : array | IdiormResultSet
리턴 array | IdiormResultSet
    public function find_many()
    {
        if (self::$_config[$this->_connection_name]['return_result_sets']) {
            return $this->find_result_set();
        }
        return $this->_find_many();
    }

Usage Example

예제 #1
0
 /**
  * Wrap Idiorm's find_many method to return
  * an array of instances of the class associated
  * with this wrapper instead of the raw ORM class.
  */
 public function find_many()
 {
     return array_map(array($this, '_create_model_instance'), parent::find_many());
 }
All Usage Examples Of ORM::find_many
ORM