/** * Ensure indexes from attribute if needed * * @param AttributeInterface $attribute */ public function ensureIndexesFromAttribute(AttributeInterface $attribute) { if ($attribute->isUseableAsGridFilter() || AttributeTypes::IDENTIFIER === $attribute->getAttributeType() || $attribute->isUnique()) { $this->indexCreator->ensureIndexesFromAttribute($attribute); } }
/** * Ensure indexes from attribute if needed * * @param AbstractAttribute $attribute */ public function ensureIndexesFromAttribute(AbstractAttribute $attribute) { if ($attribute->isUseableAsGridFilter() || AbstractProduct::IDENTIFIER_TYPE === $attribute->getAttributeType() || $attribute->isUnique()) { $this->indexCreator->ensureIndexesFromAttribute($attribute); } }