예제 #1
0
파일: Type.class.php 프로젝트: evilgeny/bob
 public function delete()
 {
     if ($this->_mapper->shopTypeDeleteCheck($this)) {
         $this->_mapper->deleteSettings('type', $this->id());
         parent::delete();
     } else {
         throw new Exception("Unable to delete shop type `" . $this->name . "' due shops linked to it.");
     }
 }