diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index fe44250..8144725 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -168,10 +168,12 @@ class ModelsCommand extends Command throw new \Exception($name . ' is not instantiable.'); } - $model = \App::make($name); + $model = $this->laravel->make($name); + if ($hasDoctrine) { $this->getPropertiesFromTable($model); } + $this->getPropertiesFromMethods($model); $output .= $this->createPhpDocs($name); } catch (\Exception $e) {