Example #1
0
 protected function beforeDelete()
 {
     if (!parent::beforeDelete()) {
         return false;
     }
     $sql = 'Drop table if exists ' . $this->getTempTableName();
     R::exec($sql);
     return true;
 }
Example #2
0
 /**
  * @return string
  */
 protected function beforeDelete()
 {
     if ($this->getScenario() != 'autoBuildDatabase') {
         parent::beforeDelete();
         if (count($this->productTemplates) > 0 || count($this->productCategories) > 0) {
             return false;
         } else {
             return true;
         }
     } else {
         return parent::beforeDelete();
     }
 }
Example #3
0
 protected function beforeDelete()
 {
     if (!parent::beforeDelete()) {
         return false;
     }
     AllPermissionsOptimizationUtil::roleBeingDeleted($this);
     return true;
 }
Example #4
0
 public function beforeDelete()
 {
     if ($this->emailBox->isSpecialBox()) {
         throw new NotSupportedException();
     }
     return parent::beforeDelete();
 }
 /**
  * @return string
  */
 protected function beforeDelete()
 {
     parent::beforeDelete();
     return !(count($this->productTemplates) > 0 || count($this->productCategories) > 0);
 }
 /**
  * @return bool
  */
 protected function beforeDelete()
 {
     parent::beforeDelete();
     if ($this->name != self::DEFAULT_NAME) {
         return true;
     } else {
         return false;
     }
 }
Example #7
0
 protected function beforeDelete()
 {
     if (!parent::beforeDelete()) {
         return false;
     }
     ZurmoRedBean::$writer->dropTableByTableName($this->getTempTableName());
     return true;
 }
 /**
  * @return bool
  */
 protected function beforeDelete()
 {
     parent::beforeDelete();
     return count($this->products) == 0;
 }