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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Adding Images to the testimonials page?


Go to End
Reply


11 Posts   3375 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, 4092 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