[AUTOGENERATED][Poll] Add auto generated code for poll entity and new route

This commit is contained in:
Daniel
2020-10-29 18:32:35 +00:00
committed by Hugo Sales
parent b860c6bbb0
commit a9c35def3f
4 changed files with 109 additions and 19 deletions

View File

@@ -46,9 +46,11 @@ class NewPoll
$data = $form->getData();
}
//$test = Poll::create(['id' => '0']); //not working till generating things
//testing
$test = Poll::create(['id' => '0', 'uri' => 'a']);
//DB::persist($test);
//DB::flush();
//$loadpoll = Poll::getFromId('0'); //need to add plugin support for DB::__callStatic
return ['_template' => 'Poll/newpoll.html.twig', 'form' => $form->createView()];
}