yii\mongodb\ActiveQuery::all PHP 메소드

all() 공개 메소드

Executes query and returns all results as an array.
public all ( Connection $db = null ) : array | ActiveRecord
$db Connection the Mongo connection used to execute the query. If null, the Mongo connection returned by [[modelClass]] will be used.
리턴 array | ActiveRecord the query results. If the query results in nothing, an empty array will be returned.
    public function all($db = null)
    {
        return parent::all($db);
    }

Usage Example

예제 #1
0
 /**
  * @inheritdoc
  * @return Proxy[]|array
  */
 public function all($db = null)
 {
     return parent::all($db);
 }