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

synchronizeVariations() public method

Synchronizes all parent Product data to its variations (or a single one if $targetVariation is specified).
public synchronizeVariations ( 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 synchronizeVariations(ProductInterface $product, ArrayCollection $variations = null);