Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » DataObjectManager showing manymany relationship

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 562 Views
  • SnowBoarder82
    Avatar
    Community Member
    52 Posts

    Re: DataObjectManager showing manymany relationship Link to this post

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

    562 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.