v7.0.0-beta.4 release
This commit is contained in:
1 parent
05db17887d
commit
1db039ff34
1545 files changed
+136783
-11634
No files matched your search
@@ -81,4 +81,19 @@ class OrderOptionRepository implements OrderOptionRepositoryInterface
|
||||
{
|
||||
return (bool) $option->delete();
|
||||
}
|
||||
|
||||
/**
|
||||
* ID 목록으로 조회하고 ID 키 맵으로 반환합니다 (bulk activity log lookup).
|
||||
*
|
||||
* @param array<int, int> $ids ID 목록
|
||||
* @return \Illuminate\Database\Eloquent\Collection
|
||||
*/
|
||||
public function findByIdsKeyed(array $ids): \Illuminate\Database\Eloquent\Collection
|
||||
{
|
||||
if (empty($ids)) {
|
||||
return new \Illuminate\Database\Eloquent\Collection();
|
||||
}
|
||||
|
||||
return OrderOption::whereIn('id', $ids)->get()->keyBy('id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user