I am now struggling with the collection form. I have a collection of at least 3 forms included. But since the included forms are not displayed, I can’t fill them out in a functional test.
Here is the collection
->add('references', 'collection', array(
'type' => 'reference',
'allow_add' => true,
'constraints' => array(
new C\Count(array(
'min' => 3,
'minMessage' => 'You should specify at least 3 references.'
))
)
))
And when this form is visualized, it looks like
<label class="required">References</label><div id="form_references"
data-prototype="here-is-the-rendered-prototype-of-embedded-form">
How can I get Symfony Form to render a couple of inline forms without using javascript so that I can easily test them functionally or use them in a browser without activating JS?
One more thing: forms are not attached to Enity / Model, but simply represent a simple array.
source
share