Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 053cee7

Browse files
committed
minor symfony#7575 Update dynamic_form_modification.rst (raulconti)
This PR was merged into the 2.7 branch. Discussion ---------- Update dynamic_form_modification.rst Option 'property' is deprecated since 2.7 in favor of 'choice_label' http://symfony.com/doc/2.7/reference/forms/types/entity.html#choice-label Commits ------- 5f71a2c Update dynamic_form_modification.rst
2 parents c19485f + 5f71a2c commit 053cee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form/dynamic_form_modification.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ and fill in the listener logic::
307307

308308
$formOptions = array(
309309
'class' => User::class,
310-
'property' => 'fullName',
310+
'choice_label' => 'fullName',
311311
'query_builder' => function (EntityRepository $er) use ($user) {
312312
// build a custom query
313313
// return $er->createQueryBuilder('u')->addOrderBy('fullName', 'DESC');

0 commit comments

Comments
 (0)