Can any1 explain how i can create a working many_many relation using only one table, ie
One Article should be able to hold many other articles
class Article {
static $many_many = array("NewsArticles"=>"Article");
function getCMSFields() {
$fields = parent::getCMSFields();
$table = new ManyManyComplexTableField(
$this,
'NewsArticles',
'Article'
);
$fields->addFieldToTab("Root.Content.Related Articles",$table);
return $fields;
};
the available articles are displayed in the table, but if i check the checkbox and
saves the page, the relation isnt saved