hi,
I have scenario , where i want to save a meeting,  and meeting has
relation with topic habtm,
Tables: Meeting, Topic, MeetingsTopics
Meeting HABTM with Topic


this  sample data is working fine,

[Meeting] => Array
        (
            [date] => 2010-02-10
            [Priority] => 1
        )

    [Topic] => Array
        (
            [id] => Array
                (
                    [0] => 6
                )

        )

These below data is saving properly.
But it didn't save data when i have meeting ids more than one.

[Meeting] => Array
        (
            [date] => 2010-02-06
            [name] => "test"
            [Priority] => 1
        )

    [Topic] => Array
        (
            [id] => Array
                (
                    [0] => 7
                    [1] => 14
                    [2] => 13
                )

        )

I am using saveAll($this->data) function to save that.

and how can i hand the scenario when i have to add new topic at
meetings view and automatically relate this current meeting

[Meeting] => Array
        (
            [date] =>
            [Priority] => 1
        )

    [Topic] => Array
        (
            [id] => Array
                (
                    [0] => 16
                )

            [name] => adsfasdfasdfasdfas
        )

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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