source/Application/Model/VoucherSerie.php
public function delete($sOxId = null)
    {
        if (!$sOxId) {
            $sOxId = $this->getId();
        }

        $this->unsetDiscountRelations();
        $this->unsetUserGroups();
        $this->deleteVoucherList();

        return parent::delete($sOxId);
    }
public function delete($sOxId = null)
    {
        if (!$sOxId) {
            $sOxId = $this->getId();
        }

        $this->unsetDiscountRelations();
        $this->unsetUserGroups();
        $this->deleteVoucherList();

        return parent::delete($sOxId);
    }
public function delete ( $ sOxId = null ) { if ( ! $ sOxId ) { $ sOxId = $ this -> getId ( ) ; } $ this -> unsetDiscountRelations ( ) ; $ this -> unsetUserGroups ( ) ; $ this -> deleteVoucherList ( ) ; return parent :: delete ( $ sOxId ) ; }
Override delete function so we can delete user group and article or category relations first.

@param string $sOxId object ID (default null)

@return null
Override delete function so we can delete user group and article or category relations first .