From 32df0a3bc641aa225f7ec988c1d5a95509f20e28 Mon Sep 17 00:00:00 2001 From: hubertnnn Date: Wed, 19 Dec 2018 13:11:08 +0100 Subject: [PATCH] Fix: Parametrized relationships prevent generation of metadata (#719) --- src/Console/ModelsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 306c176..bf97f6f 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -482,7 +482,7 @@ class ModelsCommand extends Command //Resolve the relation's model to a Relation object. $methodReflection = new \ReflectionMethod($model, $method); if ($methodReflection->getNumberOfParameters()) { - return; + continue; } $relationObj = $model->$method();