Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Limit Control Pain **SOLVED**

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2
Go to End
Author Topic: 622 Views
  • IOTI
    Avatar
    Community Member
    187 Posts

    Re: Limit Control Pain **SOLVED** Link to this post

    It's important to remember how your objects are related. In your GalleryImage.php class you're using "BelongToProduct" as the has_one relationship to a Product page. So try using:

    $BelongToProduct.Link

    Usually when i'm developing DataObjects i'll use Parent like so

    static $has_one=array(
    'Parent'=>'Product' //Product being whatever the "parent" is
    );

    Keeps things consistent.

  • ambient
    Avatar
    Community Member
    113 Posts

    Re: Limit Control Pain **SOLVED** Link to this post

    Ah....Got it
    Thanks so much for your help

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