SELECT t1.field1, t1.field2, t1.field3, t2.field4, t2.field5,t2.field6
FROM table1 AS t1 LEFT JOIN table2 AS t2
ON t1.field1 = t2.field1 AND t1.field2 = t2.field2
WHERE t1.fieldstart <='2021-10-13' AND t1.fieldend >= '2021-10-31' OR t2.submitted_by='xyz';
I want convert the query above to agile toolkit akt4 code , any idea on how to do the left join in agiletoolkit, every time i use join it give me inner join , I want left join
$j_table = $m->join('table2.nameid');
I have tried this it looks fine
$j_table = $m->leftjoin('table2.nameid');
How ever when I try to join with none id I get this error
$j_table = $m->leftjoin('table2.name','name');
Fatal Error atk4\data\Exception: You are trying to link tables on non-id fields. This is not implemented yet
looking for help please ?
Thanks