我正在使用Ci-bonfire并且我想在我加入多个表时给出表的别名,它会给列不明确所以如何给出表的别名
这是我的代码示例..
$select = array(
$this->table_name . '.*',
'bf_countries.name'
);
$join = array(
'bf_countries' => array(
'condition' => 'bf_countries.country_id = ' . $this->table_name . '.country_id',
'type' => 'left'
)
);
$order = array(
"sortby"=>$this->table_name.".".$this->key,
"order"=>"DESC"
);
$config = array(
"req_data" => $req_data,
"select"=>$select,
"join"=>$join,
"order"=>$order
);
$this->grid->initialize($config);
return $this->grid->get_result();
假设我想提供 bf_countries 表的别名,那么该怎么做..?