7911 Posts in 1354 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Nesting a ManyManyDataObjectManager
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | ||
| Author | Topic: | 1253 Views |
-
Re: Nesting a ManyManyDataObjectManager

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.
-
Re: Nesting a ManyManyDataObjectManager

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.
-
Re: Nesting a ManyManyDataObjectManager

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.
| 1253 Views | ||
| Go to Top |

