Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FormBuilder from Metadata #8

Open
beberlei opened this issue Jul 19, 2012 · 2 comments
Open

FormBuilder from Metadata #8

beberlei opened this issue Jul 19, 2012 · 2 comments

Comments

@beberlei
Copy link
Collaborator

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

@stof
Copy link

stof commented Jul 19, 2012

generating builders ? what do you mean ?

@beberlei
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants