
geert van bommel - 2009-08-10 12:58:23
I think I found a bug when using the start/end_group. An 'AND' is missing and there is a bracket too much at the end of the where clause.
example: $db->field1('value1')->start_group()->field2('firstvalue')->or()->field2('secondvalue)->end_group();
I know in this case it can be solved like so : $db->field1('value1')->field2(array('firstvalue','secondvalue'));
But the problem remains when the or is between different fields. So the example of the documentation does not work:
//for name='user_one' and (key>10 or no>100)
$rowset=$db->user->name('user_one')->start_group()->key('>',10)->or()->no('>',100)->end_group();