Model doc : create model using App::make($name)

trying to generate doc for a model with dependencies in constructor will fail with `new $name` .
Now it works using App:make($name).
Laravel IOC resolves the dependencies.
This commit is contained in:
Sébastien Monterisi
2014-12-06 23:04:58 +01:00
parent e2b59c6cb5
commit 57dc033061
+1 -1
View File
@@ -168,7 +168,7 @@ class ModelsCommand extends Command
throw new \Exception($name . ' is not instanciable.');
}
$model = new $name();
$model = \App::make($name);
if ($hasDoctrine) {
$this->getPropertiesFromTable($model);
}