You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ability to do an OR query with find() and find_first(), possibly by doing a
sub-array within the condition array.
Example: table_name::find(array('cond1' => true, array('cond2' => 1,
'cond3' => 2)));
Would produce: SELECT * FROM table_name WHERE cond1 = true AND (cond2 = 1
OR cond3 = 2);
Original issue reported on code.google.com by lorderunion on 2 Sep 2008 at 11:58
The text was updated successfully, but these errors were encountered:
I think this needs some more thought, and maybe we should get some inspiration
from
another framework that does query building.
Really, this kind of complex filtering condition calls for a
business-requirements
specific ::find_by_X method that implements the OR logic, rather than support
in the
framework.
Original comment by thwarted...@gmail.com on 10 Sep 2008 at 7:56
Original issue reported on code.google.com by
lorderunion
on 2 Sep 2008 at 11:58The text was updated successfully, but these errors were encountered: