if ($propertyValueModel === null
) { $propertyValueModel =
new Value($option,
$value);
$models->
persist($propertyValueModel);
} if (!
$propertyValues->
contains($propertyValueModel)) { // add only new values
$propertyValues->
add($propertyValueModel);
} } } $product->
setPropertyValues($propertyValues);
$models->
flush();
$this->
View()->
assign([ 'success' => true,
]);
} /**
* @deprecated in 5.6, will be private in 5.8
*
* Used for the product backend module to load the product data into
* the module. This function selects only some fragments for the whole product
* data. The full product data stack is defined in the
* Shopware_Controller_Backend_Article::getArticle function
*
* @param int $articleId
*
* @return array
*/