Xavier maybe you could explain what you mean, and where you mean it as
I am confused about your statement
However I did get it working but I had to bind them manually in the
controller :-/

On Nov 10, 6:22 pm, "Xavier Mathews" <[EMAIL PROTECTED]> wrote:
> To The Origanal.
>
> On 11/10/2008, validkeys <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > was that a reply to my response or the original. Im not sure that I
> > understood what you meant.
>
> > On Nov 10, 6:09 pm, "Xavier Mathews" <[EMAIL PROTECTED]> wrote:
> >> add an extra (array) and why put class name the it thinks of it like
> >> this: $array => classname : that does not even look right.
>
> >> On 11/10/2008, validkeys <[EMAIL PROTECTED]> wrote:
>
> >> > 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'));
>
> >> --
> >> B= *•*Beautiful*•*
> >> E= *•*Elegant*•*
> >> Y= *•*Young*•*
> >> O= *•*Original*•*
> >> N= *•*Natural*•*
> >> C= *•*Clever*•*
> >> E= *•*Enthralling*•*
> >> (`*•.¸ (`*•.¸ ¸.•*´) ¸.•*´)
> >> `•.¸(*)Beyoncè`s #1 Fan(*)
> >> (¸.•*(¸.•*´¨¨¨¨`*•.¸ )*•.¸)
> >> Xavier A. Mathews
> >> Student/Developer/Web-Master
> >> GG Client Based Tech Support Specialist
> >> Hazel Crest Illinois
> >> [EMAIL PROTECTED]@[EMAIL PROTECTED]
> >> "Fear of a name, only increases fear of the thing itself."
>
> --
> B= *•*Beautiful*•*
> E= *•*Elegant*•*
> Y= *•*Young*•*
> O= *•*Original*•*
> N= *•*Natural*•*
> C= *•*Clever*•*
> E= *•*Enthralling*•*
> (`*•.¸ (`*•.¸ ¸.•*´) ¸.•*´)
> `•.¸(*)Beyoncè`s #1 Fan(*)
> (¸.•*(¸.•*´¨¨¨¨`*•.¸ )*•.¸)
> Xavier A. Mathews
> Student/Developer/Web-Master
> GG Client Based Tech Support Specialist
> Hazel Crest Illinois
> [EMAIL PROTECTED]@[EMAIL PROTECTED]
> "Fear of a name, only increases fear of the thing itself."
--~--~---------~--~----~------------~-------~--~----~
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