Thursday, June 3, 2010

Updating One-to-Many Relations

Hi, i have a problem with a one to many relations, my models look like
this:

Calendar ( hasMany Days )
Day ( belongsTo Calendar )

The add operation is ok, i select some days from a calendar and they
get inserted and related to its calendar.

But when i edit a calendar the view previously selects the days it
has, but if i remove one day and select another one and i do a saveAll
operation the Days related to the Calendar remains the same, what
could be wrong?

Thanks in advance to all responses.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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: