Friday, January 2, 2009

Re: saving to multiple models in a habtm relationship

Hmmm ..

Are you sure you have the right association type here? Sounds to me
as it could be a hasOne <=> belongsTo relationship.

I.e. can one Article be related to more than one Measure and vice
versa?

An all-in-one entry form would not easily allow you to create an
Article or Measure and relate it to already existing Articles/Measures
at the same time. To make this work you'd have to have an
intelligient form which would allow you to specify if you are adding a
new Article or selecting form existing ones and likewise with the
Measure part of the form.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: