瀏覽代碼

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

Dan Green 8 年之前
父節點
當前提交
c55cdfdd00
共有 1 個文件被更改,包括 1 次插入1 次删除
  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'
                 ))
             ;
         }