public function afterSave($insert, $changedAttributes) { if ($this->file_sys_name == self::$fileTempName) { $this->createSysName(); $this->save(); } return parent::afterSave($insert, $changedAttributes); }
public function afterSave($insert, $changedAttributes) { $this->createAlbumPath(); return parent::afterSave($insert, $changedAttributes); }