Hi eagle,
> $venues = $this->Venue->find('all', array('contain' => array('Contact'
> => array('conditions' => array('Contact.jobType' =>'main')))));
> $this->set('venues', $this->paginate('Venue'));
the problem is you're running two different queries,
$this->paginate('Venue') is similar to $this->Venue->find('all'), try:
$this->set('venues',
$this->Venue->find('all', array('contain' => array(
'Contact'=> array(
'conditions' => array('Contact.jobType'
=>'main')
)
)
)
)
);
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
-~----------~----~----~----~------~----~------~--~---