Browse Source

fix property name in documentation

Thomas 14 năm trước cách đây
mục cha
commit
9ba3ac9640

+ 2 - 2
Resources/doc/tutorial/creating_your_first_admin_class/defining_admin_class.rst

@@ -125,7 +125,7 @@ CommentAdmin
 
         protected $class = 'Application\Sonata\NewsBundle\Entity\Comment';
 
-        protected $listFields = array(
+        protected $list = array(
             'name' => array('identifier' => true),
             'getStatusCode' => array('label' => 'status_code'),
             'post',
@@ -134,7 +134,7 @@ CommentAdmin
             'message',
         );
 
-        protected $formFields = array(
+        protected $form = array(
             'name',
             'email',
             'url',