Browse Source

changed 'property' to 'choice_label' in docs (#4067)

Dan Green 8 years ago
parent
commit
c55cdfdd00
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Resources/doc/getting_started/the_list_view.rst

+ 1 - 1
Resources/doc/getting_started/the_list_view.rst

@@ -187,7 +187,7 @@ the search field to use the ``name`` property of the Category:
                 ->add('title')
                 ->add('category', null, array(), 'entity', array(
                     'class'    => 'AppBundle\Entity\Category',
-                    'property' => 'name',
+                    'choice_label' => 'name', // In Symfony2: 'property' => 'name'
                 ))
             ;
         }