Merge pull request #589 from mfn/patch-1

Keep "null"-ness of column even with model casts
This commit is contained in:
Barry vd. Heuvel
2018-05-07 11:21:47 +02:00
committed by GitHub
+4
View File
@@ -297,6 +297,10 @@ class ModelsCommand extends Command
continue;
} else {
$this->properties[$name]['type'] = $this->getTypeOverride($realType);
if (isset($this->nullableColumns[$name])) {
$this->properties[$name]['type'] .= '|null';
}
}
}
}