Przeglądaj źródła

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 lat temu
rodzic
commit
96884d5890
1 zmienionych plików z 2 dodań i 2 usunięć
  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();
             },
         )
     );