[eluser]Marcelo Wanderley[/eluser]
Hello everybody,
Came a small problem when using joins with activerecord.
Generates an error when I add more than one join.
The codeigniter supports multiple joins?
What could this wrong in my code?
Thank you,
function getEmpresa(){
$this->db->select('*');
$this->db->from('empresa');
$this->db->join('servicos', 'servicos.id = empresa_id', 'right');
$this->db->join('Habilitacao', 'carteira.id = empresa_id', 'right');
//$this->db->join('Pagamento', 'Pagamento.id = empresa.id');
$data = $this->db->get();
return $data->result();
}