Jump to:

7940 Posts in 1543 Topics by 946 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: 965 Views
  • SnowBoarder82
    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...

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.