diff --git a/src/Restify.php b/src/Restify.php index 9c07ce55a..d603f5c52 100644 --- a/src/Restify.php +++ b/src/Restify.php @@ -61,6 +61,7 @@ public static function repositoryForModel($model) if ($model instanceof Model) { $model = get_class($model); } + return $value::$model === $model; }); }