Hi Lauren,
I meant 'Purchase' not Payment!
$this->Account->Behaviors->attach('Containable');
$account = $this->Account->find('first', array(
'conditions'=>array('Account.id' => $account_id),
'contain'=>array(
'Purchase'=>array('conditions'=>array(
'Purchase.status'=>'pending'
)))
));
hth
jon
--
jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---