@Weather
It is standard practice on a HABTM join table to delete all existing
records then run a new insert, this is the most efficient way to do it
as requires fewer SQL calls and PHP loops, plus it ensures there is no
duplication of selected options which would cause problems at a later
date when updating selections.

Why is this a problem to you?

@nurvzy
Does 'unique' => 'false' really stop cake running a deleteAll on the
join table before inserting the new records?

And would you want to allow duplicate records in your join table?
What would you do with those duplicate records as there is no standard
way to use a form to de-select an option if it has been chosen twice?

HTH

Paul.

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

Reply via email to