Jump to:

7937 Posts in 1537 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Nesting a ManyManyDataObjectManager

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 1524 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Nesting a ManyManyDataObjectManager Link to this post

    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.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Nesting a ManyManyDataObjectManager Link to this post

    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.

  • JoshuaLewis
    Avatar
    Community Member
    76 Posts

    Re: Nesting a ManyManyDataObjectManager Link to this post

    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.

    1524 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.