profiles has many users.
users has many profiles. 

I just want to do a query which will join profiles & profiles_users table,
so i do the following:

$this->Profile->Behaviors->attach('Containable');
$this->Profile->contain("ProfilesUser");
$this->data = $this->Profile->find('all');

However, its not working, it just querying profiles table. i want something
like profiles join with profiles_users.

whats wrong??
-- 
View this message in context: 
http://www.nabble.com/HABTM-query-issue-tp24595184p24595184.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
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