src/Repository.php
public function getWhereIdInWithKeys(array $ids)
    {
        $models = $this->getWhereIdIn($ids);

        $returning = [];
        foreach ($models as $model) {
            $returning[$model->getId()] = $model;
        }

        return $returning;
    }
public function getWhereIdInWithKeys(array $ids)
    {
        $models = $this->getWhereIdIn($ids);

        $returning = [];
        foreach ($models as $model) {
            $returning[$model->getId()] = $model;
        }

        return $returning;
    }
Return the models, which have the ID in the parameter array.
The keys of the returning array are the IDs of the models.

@param array $ids

@return Model[]