diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index db08de5..e736b90 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -192,6 +192,9 @@ class ModelsCommand extends Command if ($hasDoctrine) { $this->getPropertiesFromTable($model); + } + + if (method_exists($model, 'getCasts')) { $this->castPropertiesType($model); }