Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public function getDynamic()
 {
     $results = parent::get();
     return $this->convertResults($results);
 }