it might have something to do with your belongsTo in your Postback
model. Try var $belongsTo =
array('ListAffiliate'=>array('className'=>'ListAffiliate','foreignKey'=>'list_affiliate_id'))

On Nov 10, 6:02 pm, francky06l <[EMAIL PROTECTED]> wrote:
> try recursive = 2  =>  find('all', array('recursive' => 2));
>
> On Nov 10, 11:43 pm, thatsgreat2345 <[EMAIL PROTECTED]> wrote:
>
> > I have my admin controller include ListAffiliate , which has a hasMany
> > like this
>
> > <?php
> > class ListAffiliate extends AppModel {
> >   var $name = 'ListAffiliate';
> >   var $hasMany =
> > array('Postback'=>array('className'=>'Postback','foreignKey'=>'list_affiliate_id'),
>
> > 'ListAffiliateIp'=>array('className'=>'ListAffiliateIp','foreignKey'=>'list_affiliate_id'));
> >  }
>
> > ?>
> > Postback Model
> > <?php
> > class Postback extends AppModel {
> >   var $name = 'Postback';
> >   var $belongsTo = 'ListAffiliate';
> >  }
>
> > ?>
>
> > ListaffiliateIP model
>
> > <?php
> > class ListAffiliateIp extends AppModel {
> >   var $name = 'ListAffiliateIp';
> >   var $belongsTo = 'ListAffiliate';
> >  }
>
> > ?>
> > However, when I do a and pr or debug it , it only returns the data in
> > the ListAffiliate table, not any of the data that is associated with
> > the hasMany.
> >         $this->ListAffiliate->recursive = 1;
> >         $this->set('postback',$this->ListAffiliate->find('all'));
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to