Esempio n. 1
0
 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);
 }
 /**
  * call our saveImagesToAlbum method while saving form
  */
 protected function doSave($con = null)
 {
     parent::doSave($con);
     $this->saveImagesToProduct();
     //ImagesPeer::cleanImagesWithoutConnections();
 }