Explorar o código

Fix regression where $type was lost

Thomas Rabaix %!s(int64=13) %!d(string=hai) anos
pai
achega
6995b9073f
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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) {