hello everyone-

I have a model: Day -> hasMany -> Time -> hasMany -> Prices

Day has a category_id (as well as a primary key day_id).

i want to duplicate a number of day records and all of the associative
data, based on the category_id.

so i would do: $this->Day->find('all', array('conditions' =>
'category_id = 22');

now i simply want to save this data but replace the category_id of all
found day records with '23'- essential duplicating the set and it's
associative data. is there any quick cake methods out there to do
this? Thank you is advance.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to