Ejemplo n.º 1
0
 /**
  * 删除当前对象对应的记录
  *
  * @param int $pSmartCode 是否精确匹配,默认为精确匹配
  *
  * @return bool
  */
 public function _delete($pSmartCode = 0)
 {
     $sql = "DELETE FROM {$this->mTableHash['name']}" . $this->getCondition($pSmartCode, $this);
     $return = $this->SqlCommand->ExecuteNonQuery($sql);
     $this->setState('object deleted');
     $this->notifyObservers();
     return $return;
 }