Hi all,
I have a HABTM relationship that's working, but I want to tell it not
to delete and create new rows in the many to many table - I only want
it to treat that table as read only. Using the following unbindModel
command doesn't seem to affect it.
$this->Lens->unbindModel(array('hasAndBelongsToMany' =>
array('LensMount')));
(Just FYI the models are Lens and LensMount, with appropriate tables,
and a lenses_lens_mounts table with no model)
I've seen the links posted to "Working with HABTM associations" and
"HABTM Add & Delete Behavior", but neither seem to address my problem.
I figure there must be a simple way to disable the HABTM during save.
How do I tell Cake not to mess with the join table?
Thanks
Tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---