public function cgetAction() { $list = new CollectionRepresentation($this->getDoctrine()->getRepository(self::$entityName)->findBy([], ['title' => 'ASC']), self::$entityKey); $view = $this->view($list, 200); return $this->handleView($view); }