Top "Symfony-forms" questions

The Symfony form component is a standalone library that can be used outside of Symfony projects.

Symfony form query_buider and entity repository

I'm trying to create a form with data in collection type depending on the user being logged. I'm following this …

symfony symfony-forms dql query-builder
Apply class to Symfony2 Form Label

I'm attempting to set the class on a class on a form label using php templates. Here's my code: <?…

symfony symfony-forms
How to pass parameter to FormType constructor from controller

In Symfony2.7 i was able to pass parameter to Form Type constructor directly from controller while creating the form, however …

symfony-forms symfony
Symfony2 - form_start function customise in twig

Form helpers form_start and form_end are useful in twig: {{ form_start(form) }} {{ form_end(form) }} I can customise …

forms symfony twig symfony-forms symfony-2.3
Symfony2: How to use constraints on custom compound form type?

Here is a question I've been breaking my head over for a while now. Please know that I'm not a …

php symfony constraints symfony-forms symfony-2.4
Symfony form - Access Entity inside child entry Type in a CollectionType

I'm trying to access the entity for a given embedded form in the parent CollectionType inside FormBuilder: ParentType Class ParentType …

php doctrine-orm symfony symfony-forms
Symfony2 : accessing entity fields in Twig with an entity field type

Here is my FormType : public function buildForm(FormBuilder $builder, array $options) { $builder ->add('user', 'entity', array( 'class' => …

symfony twig symfony-forms
Adding "help" messages to fields

I'm trying to add some help messages after each field in form in symfony2. I have read about one solution …

symfony symfony-forms
symfony2: setting the value of a form field outside the form, inside a controller action

I need to set the value of a symfony2 form element. I use a doctrine2 entity, a Symfony\Component\Form\…

forms symfony doctrine-orm symfony-forms image-upload
Difference between ObjectManager and EntityManager in Symfony2?

What's the difference between Doctrine\Common\Persistence\ObjectManager and Doctrine\ORM\EntityManager when using it in a custom form type? …

symfony doctrine doctrine-orm symfony-forms