8000 Update dynamic_form_modification.rst · fabpot/symfony-docs@86e260e · GitHub
[go: up one dir, main page]

Skip to content

Commit 86e260e

Browse files
Nelson da Costaweaverryan
Nelson da Costa
authored andcommitted
Update dynamic_form_modification.rst
1 parent 1262487 commit 86e260e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cookbook/form/dynamic_form_modification.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,6 @@ and fill in the listener logic::
277277

278278
$formOptions = array(
279279
'class' => 'Acme\DemoBundle\Entity\User',
280-
'multiple' => false,
281-
'expanded' => false,
282280
'property' => 'fullName',
283281
'query_builder' => function(EntityRepository $er) use ($user) {
284282
// build a custom query, or call a method on your repository (even better!)
@@ -295,6 +293,10 @@ and fill in the listener logic::
295293
// ...
296294
}
297295

296+
.. note::
297+
298+
The ``multiple`` and ``expanded`` form options will default to false because the entity type is ``entity``.
299+
298300
Using the Form
299301
~~~~~~~~~~~~~~
300302

0 commit comments

Comments
 (0)
0