Model_Example::query()->where_open()
->where('A', '=', 1)
->or_where('B', '=', 2)
->where_close()
->where('C', '=', 3)
->get();
$where = array(
'or' => array(
array('A',1),
array('A',3),
);
// this is the same as
Model_Example::query()
->where_open()
->where('A', '=', 1)
->or_where('B', '=', 2)
->where_close()
->where('C', '=', 3)
->get();
// this...
$q = Model_Example::query();
$q->where_open()
->where('A', '=', 1)
->or_where('B', '=', 2)
->where_close();
$q->where('C', '=', 3);
$q->get();
It looks like you're new here. If you want to get involved, click one of these buttons!