HI,
I have 2 models
User and equipment(the owner is a field in the user table).
user hasMany equipment
equipment belongsTo user
equipment hasOne owner.
I need to display all equipment that a user owns when he logs in.
Even if I were to specify it in the conditions part of the association
how do I get the username dynamically to be specified in the SQL?
Please help!
Thanks!
Kashyap
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---