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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Adding Images to the testimonials page?


Go to End


11 Posts   5615 Views

Avatar
GeorgeCrawford

Community Member, 8 Posts

12 February 2010 at 9:57am

When I run a dev/build?flush=1 I get this error message....

[Warning] DataObject::__construct passed The value 'HeaderImage'. It's supposed to be passed an array, taken straight from the database. Perhaps you should use DataObject::get_one instead?

The 'TagLine' and 'Statement' fields work fine.

Thanks,
George

Avatar
UncleCheese

Forum Moderator, 4102 Posts

12 February 2010 at 10:22am

The Image relationship belongs in your $has_one, not your $db.

Avatar
GeorgeCrawford

Community Member, 8 Posts

12 February 2010 at 10:33am

Ah ha! Thanks!

Go to Top