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.

General Questions /

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

Simple Query to display data from table


Go to End
Reply


9 Posts   5014 Views

Avatar
Hamish

Community Member, 712 Posts

2 September 2009 at 12:23pm

The [url=http://doc.silverstripe.org/doku.php?id=tutorials]tutorials[/url], in particular [url=http://doc.silverstripe.org/doku.php?id=tutorial:5-dataobject-relationship-management]Tutorial 5[/url] deals explicitly with Dataobject Relationship Management.

It explains very clearly what the correct techniques are for handling "1 to 1", '1 to many" and "many to many" database relationships, how to set these up in the CMS, how to handle them in your pages and provides example code for you to play with.

Go to Top