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