query->create(); } return $query; } public function getRepositoryQuery() { return $this->query; } public function getOneById(int $id) { $query = $this->query->create(); $query->filterById($id); return $query->findOne(); } }