query->create(); } public function getRepositoryQuery() { return $this->query; } public function getOneById(int $id) { $query = $this->query->create(); $query->filterById($id); return $query->findOne(); } public function getOneByDevAlias(string $devAlias) { $query = $this->query->create(); $query->filterByDevAlias($devAlias); return $query->findOne(); } //findPageBySlug public function getOneBySlug(string $slug): ?PageInterface { $query = $this->query->create(); $query->filterBySlug($slug); return $query->findOne(); } }