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 <patr...@aussiefreelancer.com.au>
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 are no longer
> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment