Thanks Brian.

That works for creating a new model relation... it gets the job done
for me.

But, is there a way to reference an existing model relation by its
alias? The documentation seems to say that bindModel expects a
classname of another model. I tried giving it an alias to no avail.

Any ideas on that one?

Thanks again.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to