SELECT * FROM items WHERE (column1 > 0 AND column2 > 0) OR (column3 < 0 AND column4 < 0);
$db->items()->where("column1 > ? AND column 2 > ?", array(0, 0))->or("column3 < ? AND column4 < ?", array(0, 0));
$db->items()->where("(column1 > ? AND column 2 > ?) OR (column3 < ? AND column4 < ?)", 0, 0, 0, 0);
--
You received this message because you are subscribed to the Google Groups "NotORM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to notorm+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to notorm+un...@googlegroups.com.