Jump to:

23486 Posts in 18995 Topics by 2878 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: 787 Views
  • IOTI
    Avatar
    Community Member
    189 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
    123 Posts

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

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

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