Hi,

I just updated to the new 1.2 RC2 release, I made the necessary
changes but I still have some trouble with saving habtm relations.

I have the two models German and English with the following relation:

German Model:
var $hasAndBelongsToMany = array(
                        'English' =>
                                array('className' => 'English',
                                                'joinTable' => 
'englishes_germans',
                                                'foreignKey' => 'german_id',
                                                'associationForeignKey' => 
'english_id'
                                ));


English Model:
        var $hasAndBelongsToMany = array(
                        'German' =>
                                array('className' => 'German',
                                                'joinTable' => 
'englishes_germans',
                                                'foreignKey' => 'english_id',
                                                'associationForeignKey' => 
'german_id'
                                ),
        );


In the database I have already a relation between German and English,
let's say a German entry "Abschlag" has two relations in the English
table: "damnum" and "discount".

Now I want delete the relations, that means for the $data array:

Array
(
    [German] => Array
        (
            [id] => 1
        )

    [English] => Array
        (
            [English] => Array
                (
                )
        )
)

Okay I do this with $this->German->save($data); but no changes in the
relation! Strange, because before the update this works perfectly. But
something I dont understand is, that if adding relations this way
works..

Is there a change in the new release or do I something wrong?

greets

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