Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » how to choose a golf club?

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 865 Views
  • ajshort
    Community Member
    244 Posts

    Re: how to choose a golf club? Link to this post

    Hey there,

    In order to determine a suitable club, you first need to create your club object, and define a one to one between you and your Clubs - as everyone knows that each club chooses a different owner.

    class Club extends DataObject {
       public static $db = array(
          'Type' => 'Enum('Putter, Other', 'Putter')'

    Then, you need to decorate your member:

    class ClubDecorator extends DataObjectDecorator {
       public function extraDBFields() {
          return array (
             'has_one' => array('Club' => 'Club')

    Once you have dont this, you can then do a simple


    to find a club.

    BTW: if your going to spam you may as well use a correct link

  • Fuzz10
    Community Member
    787 Posts

    Re: how to choose a golf club? Link to this post



    Good one ! ;-)

Page: 1
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.