/**
* Helper function which creates a variant image for the passed product image.
*
* @return Image
*/
public function createVariantImage(Image
$articleImage, Detail
$variant) { $variantImage =
new Image();
$variantImage->
setParent($articleImage);
$variantImage->
setArticleDetail($variant);
$variantImage->
setPosition($articleImage->
getPosition());
$variantImage->
setMain($articleImage->
getMain());
$variantImage->
setExtension($articleImage->
getExtension());
return $variantImage;
} /**
* @param Collection|array $options
*
* @return Mapping
*/
public function createImageMappingForOptions($options, Image
$image) {