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 relat
A) thanks for the responses.
B) looking back I have a very poorly written post. What I meant to
say is that I want to save a new measure and a new article
all at once. So on the measure add page I also have all the fields
for adding both a new Measure and a new Article, which I want to be
assoc
Brian's answer is spot on for a generic HABTM join table, but I am
confused by your original post in places.
> And the measure stuff saves fine, but the join table saves the new
> measure_id, but the article_id is always 0, and nothing is saved in
> the article table.
Are you adding a Measure re
On Thu, Jan 1, 2009 at 4:27 PM, aaron wrote:
>
> I have two models, Measure and Article, with an habtm relationship. I
> want to add a measure and a related article at the same time. I've
> tried using this algorithm from another post (http://groups.google.com/
> group/cake-php/browse_thread/th
I have two models, Measure and Article, with an habtm relationship. I
want to add a measure and a related article at the same time. I've
tried using this algorithm from another post (http://groups.google.com/
group/cake-php/browse_thread/thread/863c403df2a2de6/3137f612e3ffdf68?
lnk=gst&q=saving+