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

2.4.5 - Import with many_many relationship


Go to End


1744 Views

Avatar
flipsidenz

Community Member, 49 Posts

28 August 2012 at 10:10pm

Trying to import a bulk load of data into a dataobjectmanager. One field uses the "ManyManyDataObjectManager" field.

Example "Cats" has a many_many relationship to "CatType" with "Tiger, Lion, Cheetah" as three options.

How can I import the "CatType" data for each dataobject? Do I list each CatType ID with a comma (doesn't seem to work)?