Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

DataObjectManager showing manymany relationship


Go to End


9 Posts   4930 Views

Avatar
SnowBoarder82

Community Member, 57 Posts

23 December 2013 at 10:12am

Thanks for the confirmation of what the definition should be in Product.php martimiz.

So I currently have:

In Product.php

public static $belongs_many_many = array(
'ProductCategories' => 'ProductCategory'
);

and In ProductCategory.php

static $many_many = array(
'Products' => 'Product'
);

Which unfortunately (as noted in the bottom of my last post) still results in the large query error which includes: "Table 'productcategory_productcategories' doesn't exist" - even after I have run a dev/build...

Go to Top