is it possible to define update conditions for save() method ? For
example I have multiple habtm relations n <-> n and i like to update
or delete only one relation :
product_id (123) <-> catalgoue_id (2)
product_id (123) <-> catalgoue_id (3)
product_id (123) <-> catalgoue_id (4)
so currently if i need to do it with save() cakephp generates an
update query only by foreign key and by my example it would update all
relations with product_id 123 (as product_id is the primary_key). but
the result i'd like to achive without writing querys inside a code
would be update based on product_id and catalogue_id
is there a workaround or does it always need to be solved with query()
method?
--~--~---------~--~----~------------~-------~--~----~
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:
Post a Comment