00:07
tyranja has joined #datamapper
00:20
banditron has quit [Remote host closed the connection]
00:21
northrup has joined #datamapper
00:30
rsim has joined #datamapper
00:35
rsim has quit [Ping timeout: 240 seconds]
00:35
ckrailo has quit [Quit: Computer has gone to sleep.]
00:40
northrup has quit [Ping timeout: 252 seconds]
00:40
northrup has joined #datamapper
00:49
northrup has quit [Quit: northrup]
00:52
Sylvain1 has joined #datamapper
00:53
<
Sylvain1 >
Is there a way to avoid datamapper to crash on MySQL warning like "Column 'foo' cannot be null" ?
00:53
<
onewheelskyward >
Yeah. Put data in that column.
00:54
<
onewheelskyward >
I'm being cheeky, but really, it's a code validation problem.
00:54
<
onewheelskyward >
You haven't ensured the data integrity, so the database is doing it for you.
00:54
<
onewheelskyward >
Is it a crash or is it raising an exception?
00:54
<
onewheelskyward >
If it is raising, you can catch it and continue code execution.
00:56
<
Sylvain1 >
it crash, my solution so far was to set a default value but that's not elegant
00:57
<
onewheelskyward >
Can you gist the crash log?
01:06
snusnu has quit [Ping timeout: 256 seconds]
01:07
<
onewheelskyward >
Wow, I've never seen that one before.
01:09
<
onewheelskyward >
Is your save call wrapped in a begin/rescue block?
01:09
<
onewheelskyward >
If not it's worth the try. Also, are you really using ruby 1.9.1?
01:09
<
Sylvain1 >
# ruby -v
01:09
<
Sylvain1 >
ruby 1.9.2p290
01:10
<
onewheelskyward >
It's worth a shot. I have no idea.
01:11
<
onewheelskyward >
You can also use datamapper property definitions to define a default value.
01:12
<
Sylvain1 >
onewheelskyward: yeah that's why I was doing, but I thought it might not be the best way to handle that
01:12
<
onewheelskyward >
That's a terrific way to handle it.
01:13
<
onewheelskyward >
You have your default values with your model definition, that keeps them all in the right place.
01:13
<
Sylvain1 >
in that case I might stick with this
01:13
<
Sylvain1 >
would it avoid me to have "wrong" model?
01:13
<
Sylvain1 >
because I had a bunch of issues doing my model "manually"
01:18
<
onewheelskyward >
I've used it.
01:18
<
onewheelskyward >
The issue I ran into (other than missing field types which I added via pull request) was that the constraints are not configured.
01:19
<
onewheelskyward >
So I ended up doing it manually anyhow.
01:20
<
Sylvain1 >
onewheelskyward: ok, so basically better to do models manually
01:20
<
Sylvain1 >
that's kind of annoying
01:20
<
Sylvain1 >
at least you know very well your model the hard way :)
01:21
<
onewheelskyward >
True. :)
01:21
<
onewheelskyward >
I'm accessing a legacy database, so it's even worse. I have to track changes.
01:21
<
onewheelskyward >
Given time, I'll go back and make dm_reflections work for me, and then submit my changes.
01:21
<
onewheelskyward >
Because it's perfect for my use case.
01:22
<
Sylvain1 >
that would be great
01:28
zombor has joined #datamapper
01:39
<
dkubb >
onewheelskyward: Sylvain1: there's a more recent dm-reflection that has seen updates ..
https://github.com/yogo/dm-reflection still not totally recent, but the API it uses has been stable for a long time so it should still work
01:40
<
dkubb >
I kinda would love to see more work done on reflection. I want to do some more reflections in ROM and it would be nice if someone had recent experience with it on the DM side
01:49
campezzi has joined #datamapper
01:50
<
campezzi >
hey guys. is there a way to know why a call to a collection.destroy is failing? at first I thought it was a foreign key constraint but in this case I have a many-to-many relationship and I'm trying to destroy all records in the join table
01:52
<
campezzi >
i.e. a project has many features through estimates (and a feature can belong to multiple projects). when I try destroying a collection of estimates by their ids (I'm using a custom pk in the estimate table), it fails. would be helpful to know why :)
02:10
campezzi has left #datamapper [#datamapper]
02:12
<
Sylvain1 >
dkubb: thanks!
02:14
<
onewheelskyward >
dkubb I'll check it out, thanks.
02:19
northrup has joined #datamapper
02:31
Sylvain1 has quit [Quit: Leaving.]
03:01
Sylvain1 has joined #datamapper
03:07
brianpWins has joined #datamapper
03:12
zombor has quit [Remote host closed the connection]
03:32
rsim has joined #datamapper
03:36
rsim has quit [Ping timeout: 240 seconds]
03:42
zombor has joined #datamapper
03:51
zombor has quit [Ping timeout: 240 seconds]
03:57
brianpWins has quit [Quit: brianpWins]
04:09
brianpWins has joined #datamapper
04:24
brianpWins has quit [Quit: brianpWins]
04:43
zombor has joined #datamapper
04:47
zombor has quit [Ping timeout: 246 seconds]
05:22
Sylvain1 has quit [Quit: Leaving.]
06:06
northrup has quit [Quit: northrup]
06:17
rsim has joined #datamapper
06:28
brianpWins has joined #datamapper
06:44
zombor has joined #datamapper
06:49
zombor has quit [Ping timeout: 252 seconds]
07:19
rsim has quit [Quit: Leaving.]
07:54
DireFog has quit [Quit: OMG pwnies!]
07:58
DireFog has joined #datamapper
08:00
solnic has joined #datamapper
08:06
mikecmpbll has joined #datamapper
08:26
rsim has joined #datamapper
08:42
mbj has joined #datamapper
09:24
tyranja has quit [Ping timeout: 240 seconds]
09:25
tyranja has joined #datamapper
09:29
rolfb has joined #datamapper
09:54
solnic has quit [Quit: Leaving...]
10:04
mbj has quit [Remote host closed the connection]
10:06
mikecmpbll has joined #datamapper
10:23
mbj has joined #datamapper
10:36
mbj has quit [Quit: Lost terminal]
10:41
rsim has quit [Quit: Leaving.]
11:10
_whitelogger__ has joined #datamapper
11:11
franckverrot has quit [Quit: Connection closed for inactivity]
11:27
mbj has joined #datamapper
11:27
zombor has joined #datamapper
11:27
zombor has quit [Changing host]
11:27
zombor has joined #datamapper
11:33
zombor has quit [Remote host closed the connection]
11:38
snusnu has joined #datamapper
11:39
snusnu1 has joined #datamapper
11:43
snusnu has quit [Ping timeout: 246 seconds]
12:03
solnic has joined #datamapper
12:11
mikecmpbll has joined #datamapper
12:19
snusnu1 has quit [Quit: Leaving.]
12:21
snusnu has joined #datamapper
12:22
postmodern has quit [Quit: Leaving]
12:53
rsim has joined #datamapper
13:11
snusnu has quit [Quit: Leaving.]
13:17
banditron has joined #datamapper
13:25
solnic has quit [Quit: Leaving...]
13:30
rolfb has quit [Quit: Leaving...]
13:49
zombor has joined #datamapper
13:49
zombor has quit [Changing host]
13:49
zombor has joined #datamapper
13:53
snusnu has joined #datamapper
13:58
solnic has joined #datamapper
14:00
solnic_ has joined #datamapper
14:00
solnic has quit [Read error: Connection reset by peer]
14:12
v0n has joined #datamapper
14:13
mikecmpbll has joined #datamapper
14:36
bobocopy has joined #datamapper
14:38
solnic_ has quit [Quit: Leaving...]
14:40
knowtheory has quit [Quit: Computer has gone to sleep]
15:02
knowtheory has joined #datamapper
15:03
solnic has joined #datamapper
15:27
ckrailo has joined #datamapper
15:43
franckverrot has joined #datamapper
16:02
brianpWins has quit [Quit: brianpWins]
16:11
lnormous has joined #datamapper
16:16
<
lnormous >
i have a model where I've overwritten the password= method to do some password hashing/salting stuff. I'm now unsure of the best way to handle the validations: anyone got any ideas?
16:21
<
lnormous >
was thinking I could check for the presence of password_hash, then return an error if it's not there about password, but can't see a way to do that with dm validations
16:21
mikecmpbll has joined #datamapper
16:22
<
mbj >
lnormous: dont password hash for your self.
16:22
<
mbj >
lnormous: Use bcrypt type from dm-types.
16:33
<
lnormous >
mbj: Awesome, that's much easier
16:42
mbj has quit [Ping timeout: 264 seconds]
16:48
C0deMaver1ck has joined #datamapper
16:57
Sylvain1 has joined #datamapper
16:57
mbj has joined #datamapper
17:06
ckrailo has quit [*.net *.split]
17:06
coxandrew has quit [*.net *.split]
17:06
bhaak has quit [*.net *.split]
17:06
irclogger_com has quit [*.net *.split]
17:06
Spockz has quit [*.net *.split]
17:06
yeban has quit [*.net *.split]
17:06
jpr5 has quit [*.net *.split]
17:06
elskwid has quit [*.net *.split]
17:06
PolarFox has quit [*.net *.split]
17:06
ChanServ has quit [*.net *.split]
17:06
bobocopy has quit [*.net *.split]
17:06
snusnu has quit [*.net *.split]
17:06
mkf has quit [*.net *.split]
17:06
shingara has quit [*.net *.split]
17:06
didlix has quit [*.net *.split]
17:06
mbj has quit [*.net *.split]
17:06
Sylvain1 has quit [*.net *.split]
17:06
franckverrot has quit [*.net *.split]
17:06
knowtheory has quit [*.net *.split]
17:06
C0deMaver1ck has quit [*.net *.split]
17:06
kalleth has quit [*.net *.split]
17:06
lnormous has quit [*.net *.split]
17:06
solnic has quit [*.net *.split]
17:06
v0n has quit [*.net *.split]
17:06
zombor has quit [*.net *.split]
17:06
banditron has quit [*.net *.split]
17:06
xargoon has quit [*.net *.split]
17:06
grandy has quit [*.net *.split]
17:07
xybre has quit [*.net *.split]
17:07
kpwz has quit [*.net *.split]
17:07
gix- has quit [*.net *.split]
17:07
angelixd_ has quit [*.net *.split]
17:07
gadgetoid has quit [*.net *.split]
17:07
Ortuna has quit [*.net *.split]
17:07
_br_ has quit [*.net *.split]
17:07
flori has quit [*.net *.split]
17:07
dbussink has quit [*.net *.split]
17:07
DireFog has quit [*.net *.split]
17:07
stormwind has quit [*.net *.split]
17:07
jeremyevans has quit [*.net *.split]
17:07
viranch has quit [*.net *.split]
17:07
Cinchy has quit [*.net *.split]
17:07
namelessjon has quit [*.net *.split]
17:07
onewheelskyward has quit [*.net *.split]
17:07
mouse-_ has quit [*.net *.split]
17:07
rtyler has quit [*.net *.split]
17:07
mil has quit [*.net *.split]
17:07
rsim has quit [*.net *.split]
17:07
tchebb has quit [*.net *.split]
17:07
Frost has quit [*.net *.split]
17:07
indrek has quit [*.net *.split]
17:10
lnormous has joined #datamapper
17:10
banditron has joined #datamapper
17:10
v0n has joined #datamapper
17:10
bobocopy has joined #datamapper
17:10
Sylvain1 has joined #datamapper
17:10
jeremyevans has joined #datamapper
17:10
_br_ has joined #datamapper
17:10
mbj has joined #datamapper
17:10
irclogger_com has joined #datamapper
17:10
mkf has joined #datamapper
17:10
bhaak has joined #datamapper
17:10
namelessjon has joined #datamapper
17:10
tchebb has joined #datamapper
17:10
xargoon has joined #datamapper
17:10
gix- has joined #datamapper
17:10
DireFog has joined #datamapper
17:10
viranch has joined #datamapper
17:10
zombor has joined #datamapper
17:10
knowtheory has joined #datamapper
17:10
coxandrew has joined #datamapper
17:10
kpwz has joined #datamapper
17:10
rsim has joined #datamapper
17:10
franckverrot has joined #datamapper
17:10
Frost has joined #datamapper
17:10
snusnu has joined #datamapper
17:10
xybre has joined #datamapper
17:10
didlix has joined #datamapper
17:10
kalleth has joined #datamapper
17:10
ckrailo has joined #datamapper
17:10
Spockz has joined #datamapper
17:10
ChanServ has joined #datamapper
17:10
shingara has joined #datamapper
17:10
onewheelskyward has joined #datamapper
17:10
C0deMaver1ck has joined #datamapper
17:10
Ortuna has joined #datamapper
17:10
mouse-_ has joined #datamapper
17:10
grandy has joined #datamapper
17:10
angelixd_ has joined #datamapper
17:10
flori has joined #datamapper
17:10
Cinchy has joined #datamapper
17:10
yeban has joined #datamapper
17:10
mil has joined #datamapper
17:10
rtyler has joined #datamapper
17:10
dbussink has joined #datamapper
17:10
gadgetoid has joined #datamapper
17:10
indrek has joined #datamapper
17:10
stormwind has joined #datamapper
17:10
elskwid has joined #datamapper
17:10
jpr5 has joined #datamapper
17:10
PolarFox has joined #datamapper
17:11
rsim has quit [Quit: Leaving.]
17:24
stormwin1 has joined #datamapper
17:27
DireFog_ has joined #datamapper
17:34
DireFog has quit [*.net *.split]
17:35
stormwind has quit [*.net *.split]
17:41
rsim has joined #datamapper
17:45
rsim has quit [Read error: Operation timed out]
17:56
zombor has quit [Remote host closed the connection]
17:57
brianpWins has joined #datamapper
18:15
rsim has joined #datamapper
18:17
zombor has joined #datamapper
18:17
zombor has quit [Changing host]
18:17
zombor has joined #datamapper
18:19
ckrailo has quit [Ping timeout: 268 seconds]
18:20
ckrailo has joined #datamapper
18:20
rsim has quit [Ping timeout: 240 seconds]
18:43
snusnu has quit [Quit: Leaving.]
19:02
dkubb has joined #datamapper
19:11
snusnu has joined #datamapper
19:12
snusnu1 has joined #datamapper
19:12
snusnu1 has quit [Client Quit]
19:15
snusnu has quit [Ping timeout: 246 seconds]
19:30
bobocopy has quit [Quit: Leaving.]
19:44
brianpWins has quit [Quit: brianpWins]
19:51
v0n has quit [Quit: WeeChat 0.4.1]
19:52
v0n has joined #datamapper
20:01
snusnu has joined #datamapper
20:03
ckrailo has quit [Quit: Computer has gone to sleep.]
20:05
v0n has quit [Quit: WeeChat 0.4.1]
20:06
v1n has joined #datamapper
20:12
brainopia has joined #datamapper
20:18
ckrailo has joined #datamapper
20:20
postmodern has joined #datamapper
20:23
brianpWins has joined #datamapper
20:29
rsim has joined #datamapper
20:47
dkubb|away has joined #datamapper
20:48
dkubb has quit [Ping timeout: 245 seconds]
20:49
dkubb|away is now known as dkubb
20:53
brainopia has quit [Quit: brainopia]
21:22
knowtheo1y has joined #datamapper
21:22
knowtheo1y has quit [Client Quit]
21:25
DireFog_ is now known as DireFog
21:25
knowtheory has quit [Ping timeout: 260 seconds]
21:35
zombor has quit [Remote host closed the connection]
21:46
knowtheory has joined #datamapper
21:49
rsim has quit [Quit: Leaving.]
22:43
jpr5 has quit [*.net *.split]
22:43
elskwid has quit [*.net *.split]
22:43
dkubb has quit [*.net *.split]
22:43
PolarFox has quit [*.net *.split]
22:43
ChanServ has quit [*.net *.split]
22:43
snusnu has quit [*.net *.split]
22:43
DireFog has quit [*.net *.split]
22:43
mkf has quit [*.net *.split]
22:43
shingara has quit [*.net *.split]
22:43
didlix has quit [*.net *.split]
22:43
mbj has quit [*.net *.split]
22:43
Sylvain1 has quit [*.net *.split]
22:43
franckverrot has quit [*.net *.split]
22:43
C0deMaver1ck has quit [*.net *.split]
22:43
kalleth has quit [*.net *.split]
22:43
lnormous has quit [*.net *.split]
22:43
banditron has quit [*.net *.split]
22:43
stormwin1 has quit [*.net *.split]
22:43
xargoon has quit [*.net *.split]
22:43
grandy has quit [*.net *.split]
22:43
xybre has quit [*.net *.split]
22:43
kpwz has quit [*.net *.split]
22:43
gix- has quit [*.net *.split]
22:43
angelixd_ has quit [*.net *.split]
22:43
gadgetoid has quit [*.net *.split]
22:43
Ortuna has quit [*.net *.split]
22:43
_br_ has quit [*.net *.split]
22:43
flori has quit [*.net *.split]
22:43
dbussink has quit [*.net *.split]
22:43
knowtheory has quit [*.net *.split]
22:43
postmodern has quit [*.net *.split]
22:43
jeremyevans has quit [*.net *.split]
22:43
viranch has quit [*.net *.split]
22:43
Cinchy has quit [*.net *.split]
22:43
namelessjon has quit [*.net *.split]
22:43
mouse-_ has quit [*.net *.split]
22:43
onewheelskyward has quit [*.net *.split]
22:43
rtyler has quit [*.net *.split]
22:43
mil has quit [*.net *.split]
22:43
tchebb has quit [*.net *.split]
22:43
Frost has quit [*.net *.split]
22:44
indrek has quit [*.net *.split]
22:45
dkubb has joined #datamapper
22:45
knowtheory has joined #datamapper
22:45
namelessjon has joined #datamapper
22:45
snusnu has joined #datamapper
22:45
lnormous has joined #datamapper
22:45
mbj has joined #datamapper
22:45
stormwin1 has joined #datamapper
22:45
Sylvain1 has joined #datamapper
22:45
jeremyevans has joined #datamapper
22:45
postmodern has joined #datamapper
22:45
xargoon has joined #datamapper
22:45
Ortuna has joined #datamapper
22:45
DireFog has joined #datamapper
22:45
C0deMaver1ck has joined #datamapper
22:45
franckverrot has joined #datamapper
22:45
tchebb has joined #datamapper
22:45
banditron has joined #datamapper
22:45
viranch has joined #datamapper
22:45
_br_ has joined #datamapper
22:45
xybre has joined #datamapper
22:45
shingara has joined #datamapper
22:45
ChanServ has joined #datamapper
22:45
mouse-_ has joined #datamapper
22:45
didlix has joined #datamapper
22:45
angelixd_ has joined #datamapper
22:45
kpwz has joined #datamapper
22:45
onewheelskyward has joined #datamapper
22:45
grandy has joined #datamapper
22:45
gix- has joined #datamapper
22:45
flori has joined #datamapper
22:45
mkf has joined #datamapper
22:45
kalleth has joined #datamapper
22:45
Frost has joined #datamapper
22:45
Cinchy has joined #datamapper
22:45
dbussink has joined #datamapper
22:45
mil has joined #datamapper
22:45
rtyler has joined #datamapper
22:45
gadgetoid has joined #datamapper
22:45
indrek has joined #datamapper
22:45
PolarFox has joined #datamapper
22:45
elskwid has joined #datamapper
22:45
jpr5 has joined #datamapper
23:20
mbj has quit [Ping timeout: 260 seconds]
23:35
ckrailo has quit [Quit: Computer has gone to sleep.]
23:41
coxandrew has quit [Ping timeout: 240 seconds]
23:49
coxandrew has joined #datamapper
23:55
brianpWins has quit [Quit: brianpWins]
23:56
zombor has joined #datamapper
23:56
zombor has joined #datamapper
23:56
zombor has quit [Changing host]