I currently have this working relational query:
'phones2' => array(self::HAS_MANY, 'Phone', 'PartyId', 'condition'=>'phones2.PhoneTypeCode=:code',
'params' => array(':code'=>'M')),
Now I want to add another condition based on another attribute. This is one of my failed attempts:
'phones2' => array(self::HAS_MANY, 'Phone', 'PartyId',
'condition'=>array('phones2.PhoneTypeCode=:code', 'phones2.IsObsolete=:iso'),
'params' => array(':code'=>'M', ':iso'=>'N')),
How can I make this right?