Re: contain param ignored

2010-07-23 Thread cricket
On Fri, Jul 23, 2010 at 7:12 AM, Alex Payne wrote: > You probably just need to set the model to be containable. > i.e. > $this->ModelName->Behaviors->attach('Containable'); No, Containable is set in AppModel. Thanks. Check out the new CakePHP Questions site http://cakeqs.org and help others with

Re: contain param ignored

2010-07-23 Thread Alex Payne
You probably just need to set the model to be containable. i.e. $this->ModelName->Behaviors->attach('Containable'); var $paginate = array( 'limit' => 10, 'page' => 1, 'order'=>array('Site.sort_order' => 'ASC'), 'fields' => array('*'), 'contain' => array(

contain param ignored

2010-07-22 Thread cricket
using 1.3.3 Site hasOne SiteIllustration SiteIllustration belongsTo Site SiteIllustration hasOne SiteIllustrationThumb SiteIllustrationThumb belongsTo SiteIllustration In my SitesController, I'm calling paginate() to fetch my data. I want the Site data, plus the SiteIllustrationThumb data. Withou