[Dbix-class] [PATCH] Resultset accessors for lazy people

Toby Corkindale toby.corkindale at strategicdata.com.au
Wed Apr 15 05:56:20 GMT 2009


Toby Corkindale wrote:
> Therefore I'd like to propose that DBIC implements direct accessors for =

> resultsets, so that I can type:
> $schema->MyObject->find(1);
[snip]

Well, no-one spoke up, so here's the patch (against svn trunk).
It allows you to access resultsets via a direct method off $schema, =

saving you from typing ->resultset('blahblah') so much.
Maybe it's a bad idea? I don't know, what do you think?

Laziness is a virtue,,

-Toby
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lazy_resultset_accessors.patch
Type: text/x-patch
Size: 538 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20090415/4b=
abebd1/lazy_resultset_accessors.bin


More information about the DBIx-Class mailing list