コード例 #1
0
ファイル: Photos.php プロジェクト: karczmarczyk/photo-archive
 public function afterSave($insert, $changedAttributes)
 {
     if ($this->file_sys_name == self::$fileTempName) {
         $this->createSysName();
         $this->save();
     }
     return parent::afterSave($insert, $changedAttributes);
 }
コード例 #2
0
ファイル: Albums.php プロジェクト: karczmarczyk/photo-archive
 public function afterSave($insert, $changedAttributes)
 {
     $this->createAlbumPath();
     return parent::afterSave($insert, $changedAttributes);
 }