public function delete() { $id = $this->getId(); if (!empty($id)) { try { parent::delete(array('id' => $id)); } catch (\Exception $e) { throw new \Gc\Exception($e->getMessage(), $e->getCode(), $e); } unset($this); return true; } return false; }