I find that Model->bindModel() brings back the association, but still
not ideal having to do that for everything...

On Oct 29, 3:40 pm, tobi_one <[EMAIL PROTECTED]> wrote:
> Can confirm this happening, but don't know the reason. What's
> interesting: it only occurs sometimes, not all the times.
> As a quick fix I usually just add the killed model to $uses. What to
> note then: I found that the order of the models in the uses variable
> play a role too!
>
> Cheers,
> Tobi
>
> On Oct 29, 2:03 am, AussieFreelancer <[EMAIL PROTECTED]>
> wrote:
>
> > Hi all, I have been struggling to find the root of a problem i am
> > having, and i think i have just found it. It appears that when i use
> > the $uses variable in my controller, the tables arenolonger
> > associated...
>
> > As an example,
>
> > League belongsTo User
> > $this->League->read(null, $id)
> >     returns:
> > Array([League] => array(), [User] => array())
>
> > However, when I put var $uses = array('League', 'Setting'); at the top
> > of the controller, because I also want to be able to access Settings,
> > which are not related to the League, the above read returns the
> > following:
> > Array([League] => array())
>
> > Should this be happening? Or am I just doing something wrong?
>
> > Thanks
>
> > Patrick
--~--~---------~--~----~------------~-------~--~----~
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