mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
Removes duplicate ids for findManyFromCache
.
This commit is contained in:
parent
7834fdd471
commit
c852eb41c9
@ -41,6 +41,7 @@ trait Cacheable
|
||||
$container = ApplicationContext::getContainer();
|
||||
$manager = $container->get(Manager::class);
|
||||
|
||||
$ids = array_unique($ids);
|
||||
return $manager->findManyFromCache($ids, static::class);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user