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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

PHP Fatal error: Class 'DataObject' not found


Go to End


2 Posts   2273 Views

Avatar
Silverstripe1

Community Member, 1 Post

18 July 2015 at 8:35pm

HI,

How do I solve PHP Fatal error: Class 'DataObject' not found in /apps/silverstripe/htdocs/mysite/ where I'm executing a php file that running the ORM example

class Product extends DataObject {
private static $db = array (
'Title' => 'Varchar(100)',
'Price' => 'Currency',
);
}

thanks for your help.

Avatar
camfindlay

Forum Moderator, 267 Posts

20 July 2015 at 5:09pm