public function afterSave()
    {
        $this->saveOccasions();
        $this->saveCategories();
        $this->saveGroups();
        $this->saveTags();
        $this->saveLocation();
        $this->saveAddLocations();
        $this->saveLanguage();

        if (!empty($this->gallery)) {
            foreach ($this->gallery as $key => $image) {
                $this->setFeaturedImageFromUrl($image['url'], false);
            }
        }

        return true;
    }
public function afterSave()
    {
        $this->saveOccasions();
        $this->saveCategories();
        $this->saveGroups();
        $this->saveTags();
        $this->saveLocation();
        $this->saveAddLocations();
        $this->saveLanguage();

        if (!empty($this->gallery)) {
            foreach ($this->gallery as $key => $image) {
                $this->setFeaturedImageFromUrl($image['url'], false);
            }
        }

        return true;
    }
public function afterSave ( ) { $ this -> saveOccasions ( ) ; $ this -> saveCategories ( ) ; $ this -> saveGroups ( ) ; $ this -> saveTags ( ) ; $ this -> saveLocation ( ) ; $ this -> saveAddLocations ( ) ; $ this -> saveLanguage ( ) ; if ( ! empty ( $ this -> gallery ) ) { foreach ( $ this -> gallery as $ key => $ image ) { $ this -> setFeaturedImageFromUrl ( $ image [ 'url' ] , false ) ; } } return true ; }
Do after save
@return bool Used if post got removed or not
Do after save