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
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::
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
>>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
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/
-
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
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
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