Jump to:

23456 Posts in 18905 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » DataObjectDecorator extraStatics() error

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
Go to End
Author Topic: 1068 Views
  • BLU42 Media
    Avatar
    Community Member
    71 Posts

    DataObjectDecorator extraStatics() error Link to this post

    I had a new error recently with SS 2.4.4... has anyone else seen this one?

    Strict Standards: Non-static method MyModuleDecorator::extraStatics() cannot be called statically in /Applications/MAMP/htdocs/smartsuite/sapphire/core/model/DataObjectDecorator.php on line 69

    <?php

    class MyModuleDecorator extends DataObjectDecorator {

       function extraStatics() {
          return array(
             'db'      => array(
                'NewField'   => 'Float'
             )
          );
       }
    }

  • Overt
    Avatar
    Community Member
    5 Posts

    Re: DataObjectDecorator extraStatics() error Link to this post

    You need to upgrade SilverStripe or make changes by yourself: make this method static.

    1068 Views
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.