Jelajahi Sumber

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 tahun lalu
induk
melakukan
96884d5890
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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();
             },
         )
     );