protected function makeCollection($value)
    {
        if ($value instanceof Collection) {
            return $value->getName();
        }
        if ($value instanceof Document) {
            return $value->getCollectionId();
        }

        return $value;
    }