Esempio n. 1
0
 /**
  * 获取ActiveRecord数组
  *
  * @param  array  $columns
  * @return \CatLib\Database\ActiveReocrd\ActiveRecord[]
  */
 public function getActiveRecords($columns = ['*'])
 {
     $results = $this->builder->get($columns);
     $connection = $this->activeRecord->getConnectionName();
     return $this->activeRecord->hydrate($results, $connection)->all();
 }