I am trying to find countries with conditions
set as a variable, it looks like this:
$conditions = '1,2,3';
$this->set('options',
$this->Agency->Country->find('list',
array(
'conditions' => array(
'Country.zone_id' => array($conditions)
)
)
)
);
This should result in finding all the countries with zone_id = 1 or 2 or 3.
But in this case only the first value in the $conditions
is taken to an account, so in this case it works like Country.zone_id' => array(1)
. It returns only the countries with zone_id = 1. Why all the other are skipped?