Common/EventListener/AbstractSaleListener.php
public function onInsert(ResourceEventInterface $event)
    {
        $sale = $this->getSaleFromEvent($event);

        if ($this->handleInsert($sale)) {
            $this->persistenceHelper->persistAndRecompute($sale, false);
        }
    }
public function onInsert(ResourceEventInterface $event)
    {
        $sale = $this->getSaleFromEvent($event);

        if ($this->handleInsert($sale)) {
            $this->persistenceHelper->persistAndRecompute($sale, false);
        }
    }
public function onInsert ( ResourceEventInterface $ event ) { $ sale = $ this -> getSaleFromEvent ( $ event ) ; if ( $ this -> handleInsert ( $ sale ) ) { $ this -> persistenceHelper -> persistAndRecompute ( $ sale , false ) ; } }
Insert event handler.

@param ResourceEventInterface $event

@throws \Ekyna\Component\Commerce\Exception\CommerceExceptionInterface
Insert event handler .