Hi Mutabor, Using the same table for 2 different HABTM doesn´t seem that good an idea - cake will only populate 2 of the 3 fields at any one time (as you can see from the generated sql). The deletes are because it is assumed ( I assume :) ) that if you are updating a HABTM relationship you are defining/replacing all of the relationships for the specified object. ( Not directly related, but this is useful to update HABTMs: http://rossoft.wordpress.com/2006/08/23/working-with-habtm-associations/)
I think some time in the future it will be possible to access extra fields in link tables but until then... Perhaps given your example you need a "UserLevel" model, which would be User hasMany UserLevel, UserLevel belongs to User,Language,LanguageLevel. In this way you /can/ create a row in your languages_users table (or equivalent) to say that User X Speaks Y with Proficiency Z. HTH, AD7six --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
