I need to create a query using the join on various parameters like:
SELECT foo.*, bar.* FROM foo LEFT JOIN bar ON foo.c1 = bar.c1 AND foo.c2 = bar.c2 WHERE foo c3 = "somedata";
The problem is that I can’t find how to create “AND” using FuelPHP Query Builder.
Thanks.
It is possible to use multiple ->on with one join. In this case Builder will combine them using “AND”.