Jump to:

18590 Posts in 4875 Topics by 2285 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba

Page: 1
Go to End
Author Topic: 578 Views
  • BLU42 Media
    Avatar
    Community Member
    69 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'
             )
          );
       }
    }

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