Hi,
I have two tables users and comments. The user may have more than one comments. In user model I have given the $hasMany condition. But while printing the output , it is taking left join . ie, it is showing all records from users and relevant records from comments. I want only those users who has wriiten some comments. Also I want this to be done from User Controller ( I dont want belongsTo from comments) and I dont want to use custom query() method. Any help ? Regards Binoy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---
