Dan, thanks for your answer but I wasn't asking how to enforce uniqueness. I was asking how best to silently ignore duplicate inserts.
On Thu, Feb 25, 2010 at 10:57 PM, Dan Kubb (dkubb) <dan.k...@gmail.com> wrote: > Carl, > >> I have some models where I want to create a record if there isn't one >> with the same name already, but silently fail if a record with the >> same name already exists. What is the normal way of doing this with >> datamapper? > > I answered the same question you posted on Stack Overflow earlier: > > http://stackoverflow.com/questions/2334092/how-to-ignore-duplicate-inserts-with-datamapper#2337154 > > -- > > Dan > (dkubb) > > -- > You received this message because you are subscribed to the Google Groups > "DataMapper" group. > To post to this group, send email to datamap...@googlegroups.com. > To unsubscribe from this group, send email to > datamapper+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/datamapper?hl=en. > > -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamap...@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.