php - Symfony. Use form to add rows to doctrine database. -
well need add rows data table in doctrine. of course know how create database , how add data without form. need make symfony made page add rows databasy via created form. this route form builder /** * @route("/lol") */ public function newaction(request $request) { // createformbuilder shortcut "form factory" // , call "createbuilder()" on $form = $this->createformbuilder() ->add('pytanie', textareatype::class) ->add('odpowiedz1', texttype::class) ->add('prawidlowa1', checkboxtype::class) ->add('odpowiedz2', texttype::class) ->add('prawidlowa2', checkboxtype::class) ->add('odpowiedz3', texttype::class) ->add('prawidlowa3', checkboxtype::class) ->add('odpowiedz4', texttype::class) ->add('prawidlowa4', checkboxtype::class) ->getform(); return $th...