src/Offer/OfferCommandHandler.php
public function handleUpdateOrganizer(AbstractUpdateOrganizer $updateOrganizer)
    {
        $offer = $this->load($updateOrganizer->getItemId());
        $this->loadOrganizer($updateOrganizer->getOrganizerId());

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

        $this->offerRepository->save($offer);
    }
public function handleUpdateOrganizer(AbstractUpdateOrganizer $updateOrganizer)
    {
        $offer = $this->load($updateOrganizer->getItemId());
        $this->loadOrganizer($updateOrganizer->getOrganizerId());

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

        $this->offerRepository->save($offer);
    }
public function handleUpdateOrganizer ( AbstractUpdateOrganizer $ updateOrganizer ) { $ offer = $ this -> load ( $ updateOrganizer -> getItemId ( ) ) ; $ this -> loadOrganizer ( $ updateOrganizer -> getOrganizerId ( ) ) ; $ offer -> updateOrganizer ( $ updateOrganizer -> getOrganizerId ( ) ) ; $ this -> offerRepository -> save ( $ offer ) ; }
Handle an update command to update organizer of a place.
@param AbstractUpdateOrganizer $updateOrganizer
Handle an update command to update organizer of a place .