Exemple #1
0
 /**
  * 将数据插入表中
  * 
  * @param $data
  * @return unknown_type
  */
 public function insert($data = array())
 {
     if (!empty($data)) {
         $this->fill($data);
     }
     if ($this->_table->isAutoIncrenment()) {
         unset($this->_row[$this->_table->getPrimaryKey()]);
     }
     return $this->_table->insert($this->_row);
 }