diff --git a/src/model-cache/src/Manager.php b/src/model-cache/src/Manager.php index 228de87fa..6cec988b9 100644 --- a/src/model-cache/src/Manager.php +++ b/src/model-cache/src/Manager.php @@ -97,6 +97,10 @@ class Manager */ public function findManyFromCache(array $ids, string $class): Collection { + if (count($ids) === 0) { + return new Collection([]); + } + /** @var Model $instance */ $instance = new $class();