Hi Corey,
In SqlQuery 2.x, you can try something like this:
$select->where('(condition1 AND condition2)')
->orWhere('(condition3)');
In 3.x, we have added condition-grouping via closures:
$select->where(function ($select) {
$select->where('condition')
->where('condition');
})->orWhere(function ($select) {
$select->where('condition3');
});
Does that help?
--
Paul M. Jones
pmjo...@gmail.com
http://paul-m-jones.com
Modernizing Legacy Applications in PHP
https://leanpub.com/mlaphp
Solving the N+1 Problem in PHP
https://leanpub.com/sn1php