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
knowtheory has joined #datamapper
snusnu has joined #datamapper
snusnu has quit [Ping timeout: 245 seconds]
snusnu has joined #datamapper
snusnu has quit [Quit: Leaving.]
zombor has quit [Remote host closed the connection]
akasper has quit [Quit: Leaving.]
akasper has joined #datamapper
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
mbj has joined #datamapper
rsim has joined #datamapper
brianpWins has quit [Quit: brianpWins]
mbj has quit [Ping timeout: 276 seconds]
mbj has joined #datamapper
mbj has quit [Quit: leaving]
akemrir has joined #datamapper
<akemrir> hi, I have problems with destroy hook. It wont execute. Before update executes correctly. I want to clear many to many relation before deletion.
<akemrir> And I have weird behavior with dm-constraints. I must run delete two times to delete object.
<akemrir> automigration solved problem
<akemrir> constrains deletes related objects not relation only.
<akemrir> This also works identically on postgres. Before destroy callback doesnt execute.
<akemrir> I have removed constraints and I destroy relation manually. Now it works
zombor has joined #datamapper
zombor has joined #datamapper
mbj has joined #datamapper
zombor has quit [Remote host closed the connection]
mikecmpbll has joined #datamapper
akasper has quit [Quit: Leaving.]
snusnu has joined #datamapper
stepheneb_ has joined #datamapper
akasper has joined #datamapper
stepheneb_ has quit [Client Quit]
stepheneb_ has joined #datamapper
stepheneb_ has quit [Client Quit]
stepheneb_ has joined #datamapper
zombor has joined #datamapper
stepheneb_ has quit [Client Quit]
stepheneb_ has joined #datamapper
stepheneb_ has quit [Client Quit]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
snusnu has quit [Quit: Leaving.]
mikecmpbll has joined #datamapper
snusnu has joined #datamapper
v0n has joined #datamapper
skade has joined #datamapper
akemrir has quit [Quit: WeeChat 0.4.1]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #datamapper
v0n has quit [Ping timeout: 245 seconds]
Sylvain2 has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
skade has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #datamapper
v0n has joined #datamapper
<Eiam> any theirs on DataObects:ConnectionError -
<Eiam> keep seeing these damn things
<Eiam> theories
mbj has quit [Quit: leaving]
Sylvain3 has joined #datamapper
snusnu has quit [Quit: Leaving.]
Sylvain2 has quit [Ping timeout: 245 seconds]
snusnu has joined #datamapper
postmodern has joined #datamapper
snusnu has quit [Read error: Connection reset by peer]
snusnu has joined #datamapper
snusnu has quit [Client Quit]
mbj has joined #datamapper
rsim has quit [Quit: Leaving.]
mbj_ has joined #datamapper
mbj has quit [Ping timeout: 245 seconds]
tehprofessor has joined #datamapper
mbj has joined #datamapper
mbj_ has quit [Ping timeout: 245 seconds]
zombor has quit [Remote host closed the connection]
mbj has quit [Read error: Connection reset by peer]
mbj has joined #datamapper
rsim has joined #datamapper
skade has joined #datamapper
skade has quit [Client Quit]
akasper has quit [Quit: Leaving.]
mbj has quit [Ping timeout: 264 seconds]
<onewheelskyward> Is there a way to hack repository.adapter.select to return datamapper model objects?
<namelessjon> onewheelskyward: Wrap it in a method which does ... well, what DataMapper does.
<namelessjon> onewheelskyward: What are you doing with select you can't do with a query?
<onewheelskyward> lower(text field)
<onewheelskyward> err, string field, rather.
zombor has joined #datamapper
zombor has quit [Changing host]
zombor has joined #datamapper
<onewheelskyward> I have to do some user matching on first, last, email, etc
<namelessjon> onewheelskyward: you can do User.all(:conditions => ["lower(email) = ? OR lower(first) = ? OR ...", username.downcase, username.downcase, ...])
<onewheelskyward> Ah, didn't know about that!
<onewheelskyward> That is much better.
<namelessjon> Or however you write an sql query. It's late ;)
<onewheelskyward> I can take it from there, thanks!
<onewheelskyward> Oops. Some of them have a join, too. Time to figure that one out. :)
<onewheelskyward> Hmm. This is trickier than I thought. I have to pull an Athlete's Results based on the Result's race id.
<onewheelskyward> Well I'll be. I got it.
akasper has joined #datamapper
rsim has quit [Quit: Leaving.]