Right now, all behavior callbacks are executed only on 'primary' models, so there are only 2 possible solutions:
#1 extra query - don't fetch associated group data by User->find() but call Group->find() with condition on known group ID (from previous User->find() query) #2 bind association Group hasOne SomeUser (className User) and query Group->find() with condition on SomeUser.id - fact that you'll use hasOne may looks weird (yes I know that Group hasMany User) but it should work fine, because hasOne association is fetched in one query (belongsTo is just other side of hasOne or hasMany association) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
