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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Limit Control Pain **SOLVED**


Go to End


10 Posts   1983 Views

Avatar
copernican

Community Member, 189 Posts

26 April 2013 at 2:04am

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.

Avatar
ambient

Community Member, 130 Posts

29 April 2013 at 12:46am

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

Go to Top