diff --git a/src/IdeHelper/JsonRelationsHook.php b/src/IdeHelper/JsonRelationsHook.php index 97cbd87..e8ed6d7 100644 --- a/src/IdeHelper/JsonRelationsHook.php +++ b/src/IdeHelper/JsonRelationsHook.php @@ -28,7 +28,8 @@ public function run(ModelsCommand $command, Model $model): void $methods = (new ReflectionClass($model))->getMethods(ReflectionMethod::IS_PUBLIC); foreach ($methods as $method) { - if ($method->isStatic() || $method->getNumberOfParameters() > 0) { + if ($method->isAbstract() || $method->isStatic() || !$method->isPublic() + || $method->getNumberOfParameters() > 0 || $method->getDeclaringClass()->getName() === Model::class) { continue; }