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
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(
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