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