Selaa lähdekoodia

Fix regression where $type was lost

Thomas Rabaix 13 vuotta sitten
vanhempi
commit
6995b9073f
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      Builder/ORM/DatagridBuilder.php

+ 5 - 1
Builder/ORM/DatagridBuilder.php

@@ -85,7 +85,11 @@ class DatagridBuilder implements DatagridBuilderInterface
     {
         if ($type == null) {
             $guessType = $this->guesser->guessType($admin->getClass(), $fieldDescription->getName());
-            $fieldDescription->setType($guessType->getType());
+
+            $type = $guessType->getType();
+
+            $fieldDescription->setType($type);
+
             $options = $guessType->getOptions();
 
             foreach($options as $name => $value) {