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

DataObjectManager with ModelAdmin Duplication


Go to End


2 Posts   788 Views

Avatar
okotoker

Community Member, 50 Posts

2 March 2012 at 9:09am

I have ModelAdmin set up to create products. I then want to assign options to a product that would consist of a title and an image. I have everything working except when I click to create a new product all of the options are duplicated. If I delete an option from the new product its gone on the previously created product as well.

What am I missing here?

Avatar
okotoker

Community Member, 50 Posts

2 March 2012 at 1:22pm

I ended up just structuring things differently to get around using DataObjectManager to put options on one product ( sm, med, lg). I created a product type that I assign to a individual product with its single option. So now a product type has a tab with all of its products. So kinda the same thing and better is some ways.

It would still be good to know how to do things the other way around.