public function afterSave($insert, $changedAttributes)
    {
        try {
            if ($insert) {
                $this->insertWords();
            } else {
                $this->updateWords();
            }
        } catch (Exception $e) {
            throw $e;
        }
        parent::afterSave($insert, $changedAttributes);
    }
public function afterSave($insert, $changedAttributes)
    {
        try {
            if ($insert) {
                $this->insertWords();
            } else {
                $this->updateWords();
            }
        } catch (Exception $e) {
            throw $e;
        }
        parent::afterSave($insert, $changedAttributes);
    }
public function afterSave ( $ insert , $ changedAttributes ) { try { if ( $ insert ) { $ this -> insertWords ( ) ; } else { $ this -> updateWords ( ) ; } } catch ( Exception $ e ) { throw $ e ; } parent :: afterSave ( $ insert , $ changedAttributes ) ; }
Updates post tag words.
@param bool $insert
@param array $changedAttributes
@throws Exception
Updates post tag words .