The following works, it gives me all data where deleted is null:
$conditions = array('OR' => array(
'Task.deleted' => null,
)
);
$this->set('tasks', $this->Task->find('all', array('recursive' => 2, 'conditions' => $conditions)));
Similiar the following gives me all data where deleted is 0
$conditions = array('OR' => array(
'Task.deleted' => 0,
)
); //...
But If i combine it like the following, it gives me the data where deleted is null, but not where deleted is 0.
$conditions = array('OR' => array(
'Task.deleted' => 0,
'Task.deleted' => null
)
);
You are trying to set the PHP array key
'Task.deleted'twice, overwriting it. Do either of the following:or: