On 1/30/07 9:57 PM, Danial Pearce wrote:
> On 1/31/07, Ask Bjørn Hansen <[EMAIL PROTECTED]> wrote:
>> sub fetch {
>>    my $self = shift;
>>    my $obj = $self->object_class->new(@_);
>>    $obj->load(speculative => 1) ? $obj : undef;
>> }
> 
> Amazing. We also use the exact same method. Well, almost. We golfed
> that shift a bit ;-)
> 
> I wonder if this has a place in Rose itself?

If anyone wants to create and submit a Rose::DB::Object::Manager::Helpers
module filled with such things, feel free! :)

(plus docs and tests, naturally ;)
-John



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to