mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-20 02:53:11 +00:00
Fix: Parametrized relationships prevent generation of metadata (#719)
This commit is contained in:
committed by
Barry vd. Heuvel
parent
2f8283a746
commit
32df0a3bc6
@@ -482,7 +482,7 @@ class ModelsCommand extends Command
|
|||||||
//Resolve the relation's model to a Relation object.
|
//Resolve the relation's model to a Relation object.
|
||||||
$methodReflection = new \ReflectionMethod($model, $method);
|
$methodReflection = new \ReflectionMethod($model, $method);
|
||||||
if ($methodReflection->getNumberOfParameters()) {
|
if ($methodReflection->getNumberOfParameters()) {
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$relationObj = $model->$method();
|
$relationObj = $model->$method();
|
||||||
|
|||||||
Reference in New Issue
Block a user