/** * @Route("/", methods="GET") */ public function indexAction() { $query = Field::query(); return array_values($query->get()); }