protected function tagModels(Collection $models, $key)
    {
        $tags = $this->query->getCacheTags();

        $class = get_class($this->model);

        foreach ($models as $model) {
            $tags[] = $class.':'.$model->getKey();
        }

        $this->query->setTagsForKey($tags, $key);
    }