소스 검색

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'
                 ))
             ;
         }