فهرست منبع

Merge pull request #2720 from GoZOo/patch-1

Fix wrong variable naming enitity in form_types
Thomas 10 سال پیش
والد
کامیت
5229b738c6
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Resources/doc/reference/form_types.rst

+ 2 - 2
Resources/doc/reference/form_types.rst

@@ -206,8 +206,8 @@ to_string_callback
     $formMapper
         ->add('category', 'sonata_type_model_autocomplete', array(
             'property'=>'title',
-            'to_string_callback' => function($enitity, $property) {
-                return $enitity->getTitle();
+            'to_string_callback' => function($entity, $property) {
+                return $entity->getTitle();
             },
         )
     );