[DataMapper] Re: how do I use datamatter with appengine-datastore

2010-07-20 Thread Ken Yap
Hmm, you're right, they both print out DataMapper::Adapters::AppEngineAdapter true Using %= debug % in a template for Rails of course. I came to my conclusion because I couldn't read back any of the records that I had previously manually entered into datastore using console.sh. Ok, I'll press

Re: [DataMapper] raise_on_save_failure

2010-07-20 Thread Paul Barry
How about adopting the ActiveRecord convention of save that returns a boolean and save! that raises an exception? On Mon, Jul 19, 2010 at 11:46 PM, David Masover ni...@slaphack.com wrote: On Sunday, July 18, 2010 11:59:41 am Martin Gamsjaeger wrote: I think the motivation behind DM not

[DataMapper] paranoiddatetime-and-paranoidboolean-fail-in-100

2010-07-20 Thread tenstates
Got this same issue but having difficulty tracking down where the require statement is placed in Merb? I've tried adding it to the usual places but the failure is still the same as this ticket below..

Re: [DataMapper] raise_on_save_failure

2010-07-20 Thread Jordan Ritter
IME, the meanings of safe vs. bang methods and what class of errors do exceptions represent have always been, at their core, a conscious philosophical difference between DM and AR. One (much older) school of thought: exceptions are exceptional behaviour -- they typically represent

Re: [DataMapper] raise_on_save_failure

2010-07-20 Thread Philip Silva
Very interesting point. So in the end you are recommending to raise only in order to prevent further damage right? In my current project there are quite a lot .saves and failing saves can lead there in a lot of cases to unpredictable/unwanted behaviour. (And also did in the recent time...) But

[DataMapper] Re: Documentation patches wanted

2010-07-20 Thread Kevin
Another suggestion would be more info on exactly what paranoid does in terms of the get methods and destroy methods (i.e. nothing to destroy, but adds checks against the pranoiddeleted boolean or datetime being null). More info about repositories and how to change them. Perhaps an example case

[DataMapper] Re: order by field in child row

2010-07-20 Thread Kevin
You tried the obvious: u = People.first; u.houses.all(:order = [:bought_date.asc])? I'm not an expert (yet) but seems like it should work. -- You received this message because you are subscribed to the Google Groups DataMapper group. To post to this group, send email to

[DataMapper] Re: joins include group by order by when not requested = causes SQL temporary sort table

2010-07-20 Thread Kevin
Agreed, I would lve a way to globally disable this instead of having to monkey-patch :) -- 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