Re: [RDBO] How to use Rose::DB::Object::{Loader, Helpers} at the same time?

2007-02-16 Thread George Hartzell
George Hartzell writes: > > I have a bunch of classes that are created automagically for me by > Rose::DB::Object::Loader. > > In one of those classes I'd like to use load_or_insert from > Rose::DB::Object::Helpers. > > I'm not sure how to do it politely. > > Just for grins, I tried t

[RDBO] How to use Rose::DB::Object::{Loader, Helpers} at the same time?

2007-02-16 Thread George Hartzell
I have a bunch of classes that are created automagically for me by Rose::DB::Object::Loader. In one of those classes I'd like to use load_or_insert from Rose::DB::Object::Helpers. I'm not sure how to do it politely. Just for grins, I tried this: use Rose::DB::Object::Loader; package Foo::DB::

Re: [RDBO] New Manager argument forms

2007-02-16 Thread Jonathan Vanasco
On Feb 16, 2007, at 1:11 PM, John Siracusa wrote: > Con: small additional overhead to check and coerce the args wouldn't that require all of these get_objects parameters to now become reserved words, unusable as column names ? ( which would have been safe if they were in a query clause ) a

Re: [RDBO] New Manager argument forms

2007-02-16 Thread Jud
>>Opinions? > > > My initial thought was "messy", but I keep typing it that way > expecting it to work so I agree with Ted, DWIM. +1 for me also. I do the same thing. - Take Surveys. Earn Cash. Influence the Future of IT

Re: [RDBO] New Manager argument forms

2007-02-16 Thread Ask Bjørn Hansen
On Feb 16, 2007, at 10:11, John Siracusa wrote: > Opinions? My initial thought was "messy", but I keep typing it that way expecting it to work so I agree with Ted, DWIM. - ask -- http://develooper.com/ - http://askask.com/ -

Re: [RDBO] New Manager argument forms

2007-02-16 Thread Ted Zlatanov
On Fri, 16 Feb 2007 13:11:05 -0500 "John Siracusa" <[EMAIL PROTECTED]> wrote: JS> How do people feel about the following shortcuts? Manager-> get_objects([ a => 1, b => 2 ]); Manager-> get_objects({ a => 1, b => 2 }); JS> Both being equivalent to: Manager-> get_objects(query => [ a => 1, b => 2

Re: [RDBO] New Manager argument forms

2007-02-16 Thread Jonathan Vanasco
On Feb 16, 2007, at 1:11 PM, John Siracusa wrote: > How do people feel about the following shortcuts? > > Manager->get_objects([ a => 1, b => 2 ]); > Manager->get_objects({ a => 1, b => 2 }); > > Both being equivalent to: > > Manager->get_objects(query => [ a => 1, b => 2 ]); i don't

[RDBO] New Manager argument forms

2007-02-16 Thread John Siracusa
How do people feel about the following shortcuts? Manager->get_objects([ a => 1, b => 2 ]); Manager->get_objects({ a => 1, b => 2 }); Both being equivalent to: Manager->get_objects(query => [ a => 1, b => 2 ]); This is how the new "find" relationship method type works, and I'm wonde