dkubb changed the topic of #datamapper to: Datamapper v1.2.0 | Mailing List: http://is.gd/aa9D | Logs: http://is.gd/qWAL7V | DataMapper 2 Renamed to ROM, see #rom-rb for development
<rtyler> I'd rather the relationship property be nil than an exception <_<
campezzi has joined #datamapper
zombor has quit [Remote host closed the connection]
knowtheory has joined #datamapper
zombor has joined #datamapper
zombor has quit [Changing host]
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
zombor has joined #datamapper
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
zombor has joined #datamapper
brianpWins has joined #datamapper
brianpWins has quit [Client Quit]
v0n has joined #datamapper
brianpWins has joined #datamapper
campezzi has quit [Quit: campezzi]
zombor has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
priyam_ has quit [Quit: Connection closed for inactivity]
postmodern has joined #datamapper
brianpWins has quit [Quit: brianpWins]
brianpWins has joined #datamapper
brianpWins has quit [Read error: Connection reset by peer]
onewheelskyward has quit [Read error: Operation timed out]
onewheelskyward has joined #datamapper
knowtheory has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
postmodern has joined #datamapper
Rager has joined #datamapper
<Rager> hi - I'm new to rails and want to use datamapper instead of activerecord - am I able to use the codegen tools that activerecord has for making models and such?
mikecmpbll has joined #datamapper
brianpWins has joined #datamapper
knowtheory has joined #datamapper
mbj has joined #datamapper
pietia has joined #datamapper
mbj has quit [Ping timeout: 240 seconds]
mbj has joined #datamapper
mbj has quit [Ping timeout: 245 seconds]
mbj has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
postmodern has quit [Quit: Leaving]
tchebb has quit [Ping timeout: 245 seconds]
tchebb has joined #datamapper
kurko_ has joined #datamapper
kurko_ has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #datamapper
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
zombor has joined #datamapper
zombor has joined #datamapper
kurko_ has joined #datamapper
mikecmpbll has quit [Quit: Computer has gone to sleep.]
kurko_ has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #datamapper
pietia has quit [Quit: This computer has gone to sleep]
v0n has quit [Ping timeout: 245 seconds]
solnic_ has joined #datamapper
solnic_ has quit [Client Quit]
solnic_ has joined #datamapper
solnic_ has quit [Client Quit]
solnic_ has joined #datamapper
solnic_ has quit [Client Quit]
solnic_ has joined #datamapper
solnic_ has quit [Client Quit]
v0n has joined #datamapper
solnic has quit []
mbj has quit [Quit: leaving]
solnic has joined #datamapper
kurko_ has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #datamapper
kurko_ has quit [Quit: Computer has gone to sleep.]
snusnu has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
pietia has joined #datamapper
Sylvain1 has joined #datamapper
Eiam has joined #datamapper
brianpWins has quit [Quit: brianpWins]
snusnu has quit [Quit: Leaving.]
snusnu has joined #datamapper
snusnu has quit [Client Quit]
snusnu has joined #datamapper
pietia has quit [Quit: This computer has gone to sleep]
brianpWins has joined #datamapper
mbj has joined #datamapper
pietia has joined #datamapper
kurko_ has joined #datamapper
jhn has joined #datamapper
postmodern has joined #datamapper
brianpWins has quit [Quit: brianpWins]
kurko_ has quit [Ping timeout: 264 seconds]
brianpWins has joined #datamapper
brianpWins has quit [Client Quit]
brianpWins has joined #datamapper
brianpWins has quit [Quit: brianpWins]
brianpWins has joined #datamapper
v0n has quit [Ping timeout: 264 seconds]
kurko_ has joined #datamapper
<Eiam> so no theories about how first_or_create would result in more than one copy?
<Eiam> I'm see in this pop up in a few places now where first_or_create seems to somehow result in getting more than one instance of an object created in the db
pietia has quit [Quit: This computer has gone to sleep]
Rager has left #datamapper [#datamapper]
<namelessjon_> Eiam: One possible explanation is that it's not called transactionally. Also, is the column you search on actually unique?
<Eiam> namelessjon_: hmm well its property :id, Serial
<namelessjon_> And the database is failing to enforce that?
<Eiam> no, it looks like when I say first_or_create(:attr1=> "blah", :attr2=>"blah2")
<Eiam> it will create one if one already exists with those same sets of attributes
v0n has joined #datamapper
snusnu has quit [Ping timeout: 268 seconds]
<Eiam> here is what I know
<Eiam> 1) all interactions with model creation via DM use first_or_create
<Eiam> 2) I have a few cases where we have multiple entries with the same creation values that would have been created via first_or_create
<Eiam> 3) I tried to do some races myself (multiple at once from different sessions) and wasn't able to reproduce. I don't understand how these values are getting in, but I understand they shouldn't be there
kurko_ has quit [Read error: Connection reset by peer]
the_hack has joined #datamapper
snusnu has joined #datamapper
<namelessjon_> Can you make that combination of columns unique on the database level? At least at that point you might get an error to help track things down
<namelessjon_> I agree this seems like it shouldn't happen, just trying to figure out how to reproduce it. The first step of that seems to be 'find out when it happens'
mbj has quit [Ping timeout: 245 seconds]
the_hack has quit [Quit: Computer has gone to sleep.]
kurko_ has joined #datamapper
jhn has quit [Ping timeout: 256 seconds]
mbj has joined #datamapper
mbj has quit [Ping timeout: 240 seconds]
the_hack has joined #datamapper