simplethings / SimpleThingsFormSerializerBundle

[DEPRECATED]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FormBuilder from Metadata

beberlei opened this issue · comments

There should be an API to generate form builders from Doctrine Metadata.

generating builders ? what do you mean ?

A runtime API:

$formBuilder = $generator->generateBuilder("MyBundle\Entity\User");

Then you could call $formBuilder->getForm() and have a form. Helpful if you dont need to customize the form at all, maybe allow some skip, include options as second parameter.

See http://api.rubyonrails.org/classes/ActiveRecord/Serialization.html for more information.