public function all() { $items = (array) $this->query->get(); /* @var $model Model */ $models = []; if (count($items)) { foreach ($items as $item) { $models[] = $this->createInstance($item); } } return $this->createCollection($models); }
public function getDynamic() { $results = parent::get(); return $this->convertResults($results); }