[eluser]dagon[/eluser]
It seems that I ran onto another obstacle. Im trying to delete data from two tables using join(). but $this->db->delete() seems to take into consideration only previous declarations of where(), any joins are ommited. The query which I want to perform is:
DELETE TA,TB FROM table_a AS TA LEFT JOIN table_b AS TB ON TA.id = TB.other_id WHERE TA.field = 'value';
I try to solve it like this:
$this->db->from('table_a AS TA');
$this->db->where('TA.field', $value);
$this->db->join('table_b AS TB', 'TA.id = TB.other_id', 'left');
$this->db->delete();
It seems that the above code does not generate the "JOIN" part of the query. Anyone know why ? Maybe this is a bug ?