Sonata\Component\Product\ProductProviderInterface::synchronizeVariationsProduct PHP Method

synchronizeVariationsProduct() public method

Synchronizes parent Product data to its variations (or a single one if $targetVariation is specified).
public synchronizeVariationsProduct ( Sonata\Component\Product\ProductInterface $product, ArrayCollection $variations = null )
$product Sonata\Component\Product\ProductInterface Parent Product
$variations Doctrine\Common\Collections\ArrayCollection Optional target variations to synchronize
    public function synchronizeVariationsProduct(ProductInterface $product, ArrayCollection $variations = null);