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?


Reply

11 Posts   3330 Views

Avatar
GeorgeCrawford

12 February 2010 at 9:57am Community Member, 8 Posts

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

12 February 2010 at 10:22am 4085 Posts

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

Avatar
GeorgeCrawford

12 February 2010 at 10:33am Community Member, 8 Posts

Ah ha! Thanks!