Hi!

i got this array of data, I want to save:

Array
(
    [Discussion] => Array
        (
            [title] => asdasd
            [user_id] => 1
        )

    [Answer] => Array
        (
            [message] => asdasdasd
            [user_id] => 1
        )

)


Answer is also related to Discussion and should get the new
discussion's ID. Is there a way, cakephp does that automatic?

Model relations are defined.

I couldn't find a hint on:
http://book.cakephp.org/view/75/Saving-Your-Data

Best regards,
benedikt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to