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 |
-
DataObjectDecorator extraStatics() error

27 January 2011 at 7:38am
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 |

