/**
* Helper function to map the media data into a product image
*
* @return Image
*/
public function updateArticleImageWithMedia(ProductModel
$article, Image
$image, MediaModel
$media) { $image->
setMain(2
);
$image->
setMedia($media);
$image->
setArticle($article);
$image->
setPath($media->
getName());
$image->
setExtension($media->
getExtension());
$image->
setDescription($media->
getDescription());
return $image;
} /**
* @param int $articleId
* @param array $translations
*
* @throws CustomValidationException
*/