protected function processOfferAfterDelete()
    {
        $obOfferList = $this->obElement->offer;
        if ($obOfferList->isEmpty()) {
            return;
        }

        foreach ($obOfferList as $obOffer) {
            $obOffer->active = false;
            $obOffer->save();
        }
    }
protected function processOfferAfterDelete()
    {
        $obOfferList = $this->obElement->offer;
        if ($obOfferList->isEmpty()) {
            return;
        }

        foreach ($obOfferList as $obOffer) {
            $obOffer->active = false;
            $obOffer->save();
        }
    }
protected function processOfferAfterDelete ( ) { $ obOfferList = $ this -> obElement -> offer ; if ( $ obOfferList -> isEmpty ( ) ) { return ; } foreach ( $ obOfferList as $ obOffer ) { $ obOffer -> active = false ; $ obOffer -> save ( ) ; } }
Set active = false in offer list, after product was removed
Set active = false in offer list after product was removed