插入数据
array Module_OOP_ORM_Data::insert( )
array
array(插入ID,作用行数)public function insert()
{
$orm = $this->orm();
if ( !method_exists($orm, 'insert') )
{
throw new Exception('当前ORM对象' . get_class($orm) . '不支持insert方法');
}
$status = $orm->insert( $this->get_changed_data() );
if ( !$status ) return array(0, 0);
if ( $status[0] > 0 )
{
$id_field = $this->get_id_field_name();
$offset = current( $this->_get_offset_name_by_field($id_field) );
$this->$offset = $status[0];
}
$this->_clear_changed_value_setting();
return $status;
}