A hasMany B
B HABTM C
I have a page to edit A and B at the same time, I can add or edit
multiples instances of B to A using a saveAll, but i don't know how to
manage relations with model C. The only way i've found if, after doing
the saveAll, i have to manually save the HABTM of B to C, manyually
building an array with this structure:
array(
'B' => array('id' => ...),
'C' => array('C' => array(...))
)
Is there any way to do it all with the saveAll? what structure does
the incomming aray must have?
--~--~---------~--~----~------------~-------~--~----~
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