src/Offer/OfferCommandHandler.php
public function handleDeleteOrganizer(AbstractDeleteOrganizer $deleteOrganizer)
    {
        $offer = $this->load($deleteOrganizer->getItemId());

        $offer->deleteOrganizer(
            $deleteOrganizer->getOrganizerId()
        );

        $this->offerRepository->save($offer);
    }
public function handleDeleteOrganizer(AbstractDeleteOrganizer $deleteOrganizer)
    {
        $offer = $this->load($deleteOrganizer->getItemId());

        $offer->deleteOrganizer(
            $deleteOrganizer->getOrganizerId()
        );

        $this->offerRepository->save($offer);
    }
public function handleDeleteOrganizer ( AbstractDeleteOrganizer $ deleteOrganizer ) { $ offer = $ this -> load ( $ deleteOrganizer -> getItemId ( ) ) ; $ offer -> deleteOrganizer ( $ deleteOrganizer -> getOrganizerId ( ) ) ; $ this -> offerRepository -> save ( $ offer ) ; }
Handle an update command to delete the organizer.
@param AbstractDeleteOrganizer $deleteOrganizer
Handle an update command to delete the organizer .