I think the exception is when you have a many-to-many relationship and the 'unique' property is set (by default). Then it will delete all of the associated records in the join table before performing the add operations.
On Jun 3, 7:21 am, John Andersen <j.andersen...@gmail.com> wrote: > The saveAll only saves the information that is available, it does not > remove information not available, so when you uncheck a Day, that > information is not available and saveAll does nothing with it! > > You have to think differently in order to remove an existing Day :) > Enjoy, > John > > On Jun 3, 4:18 pm, bowikaxu <bowik...@gmail.com> wrote: > > > 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en