فهرست منبع

Fix wrong variable naming enitity in form_types

Wrong variable naming in example of sonata_type_model_autocomplete in form_types page.

$enitity should be $entity.
GoZOo 10 سال پیش
والد
کامیت
96884d5890
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();
             },
         )
     );