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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Unique indexes on DataObjects


Go to End


780 Views

Avatar
richwestcoast

Community Member, 1 Post

27 November 2015 at 2:43am

hey guys, I'm come to a issue with Unique indexes on DataObjects

Im trying to insert a record which already exists for the unique index and my code is failing
I want it to not care and simply ignore that result if it already exists
like INSERT IGNORE when doing a sql query

Hope this makes sense if you need any more information please ask me