protected function setHashingAndSave($hash)
    {
        // Set hashing state
        $hashing = $this->getHashing();
        $this->setHashing($hash);

        // Save the model
        $result = $this->save();

        // Reset hashing back to it's previous state
        $this->setHashing($hashing);

        return $result;
    }
protected function setHashingAndSave($hash)
    {
        // Set hashing state
        $hashing = $this->getHashing();
        $this->setHashing($hash);

        // Save the model
        $result = $this->save();

        // Reset hashing back to it's previous state
        $this->setHashing($hashing);

        return $result;
    }
protected function setHashingAndSave ( $ hash ) { // Set hashing state $ hashing = $ this -> getHashing ( ) ; $ this -> setHashing ( $ hash ) ; // Save the model $ result = $ this -> save ( ) ; // Reset hashing back to it's previous state $ this -> setHashing ( $ hashing ) ; return $ result ; }
Set hashing state and then save and then reset it.

@param bool $hash

@return bool
Set hashing state and then save and then reset it .