/**
  * @param Attribute $attribute
  * @param string $field
  * @param array $values
  */
 public function setPropertyValues(Attribute $attribute, $field, array $values)
 {
     foreach ($values as $websiteId => $value) {
         $attributeProperty = $attribute->getPropertyByFieldAndWebsiteId($field, $websiteId);
         if (!$attributeProperty) {
             $attributeProperty = new AttributeProperty();
             $attributeProperty->setField($field);
             if ($websiteId) {
                 $attributeProperty->setWebsite($this->databaseHelper->findWebsite($websiteId));
             }
             $attribute->addProperty($attributeProperty);
         }
         if ($value instanceof FallbackType) {
             $attributeProperty->setValue(null)->setFallback($value->getType());
         } else {
             $attributeProperty->setValue($value)->setFallback(null);
         }
     }
 }