public function beforeUpdate()
    {
        foreach ($this->models as $relationName => $config) {
            $this->markFilesAsPermanent($this->getRelationValues($relationName));
        }
    }
public function beforeUpdate()
    {
        foreach ($this->models as $relationName => $config) {
            $this->markFilesAsPermanent($this->getRelationValues($relationName));
        }
    }
public function beforeUpdate ( ) { foreach ( $ this -> models as $ relationName => $ config ) { $ this -> markFilesAsPermanent ( $ this -> getRelationValues ( $ relationName ) ) ; } }
Function will be called before updating the record.
Function will be called before updating the record .