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

Nesting a ManyManyDataObjectManager


Go to End


11 Posts   2595 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

10 November 2009 at 4:58pm

I just spent two and a half hours testing your setup, and going through my code thinking there was a bug somewhere. After all that I find you've got a typo in your ManyManyDataObjectManager constructor.

new ManyManyDataObjectManager(
$this,
'AvalableSizes',
'ProductSize',
array(
'size' => 'Size',
)
)

Ugh.. This is a good reminder why I stopped offering free support. :)

Avatar
UncleCheese

Forum Moderator, 4102 Posts

10 November 2009 at 5:01pm

Gives me a good reason to add a more user-friendly error for this problem, though. No one should have to go through that level of debugging for a typo.

Avatar
JoshuaLewis

Community Member, 81 Posts

10 November 2009 at 5:27pm

Thank you so much, I'm sorry to have taken up so much of your time with this. I've been working to clear some other tasks off my desk and dreading the fact that as soon as I do I'd have to start in on that kind of debugging.

Go to Top