N
N
nlan2015-05-17 16:25:02
symfony
nlan, 2015-05-17 16:25:02

How to display data in symfony2 form collections?

Good day.
I am creating a crud application in symphony2. There are forms that use collection type. Interested in the question of how to display the already filled values ​​in the collection.
I would like to make a definitive conclusion universally for each form.
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2015-05-17
@prototype_denis

For those already selected in the collection, use the 'entity' type;

$form->add('name', 'enity', array('query_builder' => ...));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question