我真的不好受這個查詢轉換成學說:笨到Symfony2的與Doctrine2
public function get_order($id)
{
$this->db->select('*');
$this->db->from('tbl_orderline');
$this->db->join('tbl_order', 'tbl_order.orderNo = tbl_orderline.orderNo');
$this->db->join('tbl_customer', 'tbl_customer.customerNo = tbl_order.customerNo');
$this->db->join('tbl_product', 'tbl_product.productNo = tbl_orderline.productNo');
$this->db->where('tbl_order.orderNo', $id);
$query = $this->db->get();
return $query->result_array();
}
能否請你幫我這個? 有什麼建議嗎?謝謝
您的實體已映射?您用於加入的關係存在於映射中? – Jean