public function onParentChange(ResourceEventInterface $event)
    {
        $customer = $this->getCustomerFromEvent($event);

        if ($this->updateFromParent($customer)) {
            $this->persistenceHelper->persistAndRecompute($customer, true);
        }
    }
public function onParentChange(ResourceEventInterface $event)
    {
        $customer = $this->getCustomerFromEvent($event);

        if ($this->updateFromParent($customer)) {
            $this->persistenceHelper->persistAndRecompute($customer, true);
        }
    }
public function onParentChange ( ResourceEventInterface $ event ) { $ customer = $ this -> getCustomerFromEvent ( $ event ) ; if ( $ this -> updateFromParent ( $ customer ) ) { $ this -> persistenceHelper -> persistAndRecompute ( $ customer , true ) ; } }
"Parent has changed" event handler.

@param ResourceEventInterface $event
Parent has changed event handler .