Removes duplicate ids for findManyFromCache.

This commit is contained in:
李铭昕 2019-03-13 12:19:12 +08:00
parent 7834fdd471
commit c852eb41c9

View File

@ -41,6 +41,7 @@ trait Cacheable
$container = ApplicationContext::getContainer();
$manager = $container->get(Manager::class);
$ids = array_unique($ids);
return $manager->findManyFromCache($ids, static::class);
}