Hy ,
how to add an image to the product object ?I see that there is an addImage method inSylius\Component\Core\Model\Product , but I can not use it
public function addImage(ImageInterface $image): void
{
$image->setOwner($this);
$this->images->add($image);
}
thanks for help