php - Symfony2 -- Creating a form that use's differents entities -


i've been using symfony bit , i'm trying figure out way create form. need use mvc based solution.

my form needs ask several information of different entities , need process information extracting in database. database wont problem.

i figuring out how make form different types of entities ?

and how make scrolldown menu data contained in database entity ?

if comment @chalasr not apply, i.e., entities not related, possible following in controller. create $form variable each entity{x}type form in:

$forma = $this->createform(appbundle\entity\entityatype($entitya)); $formb = $this->createform(appbundle\entity\entitybtype($entityb)); ...  return array(     'forma' => $forma->createview(),     'formb' => $formb->createview(),     ... ); 

Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -