コード例 #1
0
ファイル: ProductForm.class.php プロジェクト: vcgato29/poff
 public function doSave($conn = null)
 {
     if ($this->getValue('brand_picture') && file_exists(sfConfig::get('sf_upload_dir') . $this->getObject()->getBrandPicture())) {
         unlink(sfConfig::get('sf_upload_dir') . $this->getObject()->getBrandPicture());
     }
     parent::doSave($conn);
 }
コード例 #2
0
 /**
  * call our saveImagesToAlbum method while saving form
  */
 protected function doSave($con = null)
 {
     parent::doSave($con);
     $this->saveImagesToProduct();
     //ImagesPeer::cleanImagesWithoutConnections();
 }