diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 7359a84..47b6677 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -291,6 +291,10 @@ class ModelsCommand extends Command continue; } else { $this->properties[$name]['type'] = $this->getTypeOverride($realType); + + if (isset($this->nullableColumns[$name])) { + $this->properties[$name]['type'] .= '|null'; + } } } }