Exemple #1
0
 public function findAll() : Nextras\Orm\Collection\ICollection
 {
     return parent::findAll()->orderBy(current($this->getEntityMetadata()->getPrimaryKey()), Nextras\Orm\Collection\ICollection::DESC);
 }
Exemple #2
0
 public function setModel(Nextras\Orm\Model\IModel $model)
 {
     parent::setModel($model);
     $this->linkRepository = $model->getRepository(Ytnuk\Link\Repository::class);
 }