Hey all,
Ok I'm pulling my hair out here.

HABTM save/edit/removes are not happening.

I have two models. Channel and Area. The model definitions are configured
properly (channel: *var $hasAndBelongsToMany = array( 'Area' )* and area: *var
$hasAndBelongsToMany = array( 'Channel' )* )

I have no clue why this is not working because I am not getting any error
messages back from cake at all.

I am calling validates() before save() and it validates but it does not
save.

I am trying to save this array

$data =

Array
(
    [Channel] => Array
        (
            [id] => 16
        )

    [Area] => Array
        (
            [0] => Array
                (
                    [id] => 14
                )

        )

)

I have tried saving this too

Array
(
    [Channel] => Array
        (
            [id] => 16
        )

    [Area] => Array
        (
            [0] => 14
        )

)

Is there something I am doing incorrectly? When I push debug level up
to 3 I can see cake is not even trying to do any of the habtm queries.

--~--~---------~--~----~------------~-------~--~----~
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