I try to make a query with an ’OR’ in the where clause. I want to retrieve all records where deposit_payed = ’N’ or balance_paid = ’N’.
$query = $modx->newQuery('Booking');
$query->where(array('deposit_payed' => 'N'));
$query->orCondition(array('balance_paid' => 'N'));
The above doesn’t work when I inspect the resulting query. What would be the proper way of doing that?
Thanks.
MODx Revolution / MAMP / OS X
Thanks, I read that but my query doesn’t return any results while I’m sure there are rows. Back to the debugger!
@anso: The treeview is a handy little monster. It allows you to pack several views of the same data into one canvas. Quite cool.
MODx Revolution / MAMP / OS X
Jason you’re brilliant ! (once again) ^_^