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

synchronizeVariationsDeliveries() public method

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