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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

DataObjectManager showing manymany relationship


Go to End
Reply


9 Posts   1308 Views

Avatar
SnowBoarder82

Community Member, 55 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