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

Nesting a ManyManyDataObjectManager


Reply

11 Posts   1642 Views

Avatar
UncleCheese

10 November 2009 at 4:58pm 4085 Posts

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

10 November 2009 at 5:01pm 4085 Posts

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

10 November 2009 at 5:27pm Community Member, 76 Posts

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.