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

synchronizeVariationsPackages() public method

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