but obviously if the user doesn't want the list filtered by status, then I need that where clause to not be included. So I tried this...
$t = Model_Task::query();
if(Input::get('s')){
$t->where('status_id', (integer)Input::get('s'));
}
$t->get();
But this throws the error...
Object class "Orm\Query" could not be converted to string or sanitized as ArrayAccess. Whitelist it in security.whitelisted_classes in app/config/config.php to allow it to be passed unchecked.
Which suggests to me that the get() method isn't doing what I think it should be doing. Is there an elegant way of handling this?