Thanks a lot Brian. That works for me but I need to create a new relation.
Any way to specify an existing relation by its alias in bindModel or in the save function? I don't see anything like that in the documentation. Thanks a lot. Josh On Sep 15, 7:55 am, brian <[email protected]> wrote: > Use bindModel() and/or unbindModel() where appropriate. > > On Tue, Sep 15, 2009 at 12:06 AM, Josh <[email protected]> wrote: > > > Hello, > > > I have a question about multiple relations to the same model (http:// > > book.cakephp.org/view/851/Multiple-relations-to-the-same-model) > > > I have two tables, Infos and Ielements. Ielement belongsTo Info and > > Ielement hasAndBelongsToMany Info (and vica versa). > > > Both relations work WHEN THE OTHER IS COMMENTED but I can't get them > > to work when they are both defined. > > > I name the HABTM relation with a unique alias when both associations > > are defined, but I am not sure how to tell cake to save using the > > HABTM. I haven't seen any reference to this in the manual. > > > I haven't posted code because I am not getting any errors. > > > Any ideas? This should be simple. How can I tell cake which > > association to use before saving? (If possible I would prefer keep > > these relations separate instead of putting all relations in the join > > table) > > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
