src/Offer/OfferCommandHandler.php
public function handleUpdateDescription(AbstractUpdateDescription $updateDescription)
    {
        $offer = $this->load($updateDescription->getItemId());

        $offer->updateDescription(
            $updateDescription->getDescription(),
            $updateDescription->getLanguage()
        );

        $this->offerRepository->save($offer);

    }
public function handleUpdateDescription(AbstractUpdateDescription $updateDescription)
    {
        $offer = $this->load($updateDescription->getItemId());

        $offer->updateDescription(
            $updateDescription->getDescription(),
            $updateDescription->getLanguage()
        );

        $this->offerRepository->save($offer);

    }
public function handleUpdateDescription ( AbstractUpdateDescription $ updateDescription ) { $ offer = $ this -> load ( $ updateDescription -> getItemId ( ) ) ; $ offer -> updateDescription ( $ updateDescription -> getDescription ( ) , $ updateDescription -> getLanguage ( ) ) ; $ this -> offerRepository -> save ( $ offer ) ; }
Handle the update of description on a place.
@param AbstractUpdateDescription $updateDescription
Handle the update of description on a place .