>find() get the Spaces which belong to a certain User (it's a HABTM
relationship), using $this->find() won't help. However, Cake confuses
itself and looks for the column parent_id in the table called
spaces_users although the model Space was set to act as a Tree. That
is the problem I'm trying to solve, sorry for confusing you :) I
simply want a nested tree (the array has "children") with the spaces
that are associated with a certain user through the SpacesUser model.
On Mar 1, 4:26 am, mscdex <msc...@gmail.com> wrote:
> On Feb 28, 6:10 pm, Dan Soendergaard <dan1...@gmail.com> wrote:
>
> > No, the function is in my model so calling $this->Space->find();
> > results in Undefined property: Space::$Space.
>
> Sorry, I had forgotten it was a model function and not in your
> controller. It should be $this->find() in the code I posted above,
> instead.
--~--~---------~--~----~------------~-------~--~----~
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