forked from GNUsocial/gnu-social
[AUTOGENERATED][Poll] Add auto generated code for poll entity and new route
This commit is contained in:
@@ -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()];
|
||||
}
|
||||
|
Reference in New Issue
Block a user