es geht um folgendes.
Ich versuche eine MANY_MANY - Beziehung auf die selber Tabelle durchzuführen, jedoch ohne Erfolg
Meine Tabelle
words
id
baseform
synonyms
wordsId
synonymId
Mein Model (Words.php) sieht folgender Maßen aus
public function relations()
{
return array(
'Synonym' => array(self::MANY_MANY, 'Words', 'Synonyms(wordsId, synonymId)'.
'together' => true,
'joinType' => 'INNER JOIN',
),
);
}jedoch wie muss die relations() - Methode in synonyms erstellen??
public function relations()
{
return array(
);
}

Help














