My aim it to select lines in which etat_ce
is one of the items in my array.
For some reason I can't find the right syntax in the cookbook for this kind of request.
$etat = array('livre', 'partiellement_livre', 'valide');
$out = $this->find('all', array('conditions' => array('etat_ce ' => $etat)));
When I do it this way, cake pops me a warning :
Notice (8): Undefined offset: 1 [CORE\Cake\Model\Datasource\DboSource.php, line 2549]
When I keep only one item in the array it works. Is is a problem with my syntax ?
EDIT: I use cake php ver 2.3.5 Many thanks !