On Mar 22, 5:43 am, Chrillemeter <i...@christher.se> wrote:
> Thanks, it works. But it don't work when I use it with HABTM.

Did you put the afterFind() fix code in just your User model? If so,
you'll need to also put it in your Group model or in your
app_model.php (if you want the fix to automatically be used by all
models).

> then I use this in the controller to get the result
> ------------
> $this->set('GroupUsers', $this->find('all'));
> ------------

If that's in your controller, $this->find('all') should be $this-
>Group->find('all');
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to