protected function performSave(array $options) {

        if ($this->autoPurgeRedundantAttributes) {
            $this->attributes = $this->purgeArray($this->getAttributes());
        }

        if ($this->autoHashPasswordAttributes) {
            $this->attributes = $this->hashPasswordAttributes($this->getAttributes(), static::$passwordAttributes);
        }

        return parent::save($options);
    }
protected function performSave(array $options) {

        if ($this->autoPurgeRedundantAttributes) {
            $this->attributes = $this->purgeArray($this->getAttributes());
        }

        if ($this->autoHashPasswordAttributes) {
            $this->attributes = $this->hashPasswordAttributes($this->getAttributes(), static::$passwordAttributes);
        }

        return parent::save($options);
    }
protected function performSave ( array $ options ) { if ( $ this -> autoPurgeRedundantAttributes ) { $ this -> attributes = $ this -> purgeArray ( $ this -> getAttributes ( ) ) ; } if ( $ this -> autoHashPasswordAttributes ) { $ this -> attributes = $ this -> hashPasswordAttributes ( $ this -> getAttributes ( ) , static :: $ passwordAttributes ) ; } return parent :: save ( $ options ) ; }
Saves the model instance to database. If necessary, it will purge the model attributes
of unnecessary fields. It will also replace plain-text password fields with their hashes.

@param array $options
@return bool
Saves the model instance to database . If necessary it will purge the model attributes of unnecessary fields . It will also replace plain - text password fields with their hashes .