[Dbix-class] Re: Get table name from ResultSet class?

Lyle Kopnicky lwk at rentrakmail.com
Fri Sep 23 16:32:12 GMT 2011

On Fri, Sep 23, 2011 at 1:40 AM, Peter Rabbitson <rabbit+dbic at rabbit.us>wro=

> Except that now table_class() is no longer an accessor, it's a plain
> constant.
> Think of the cursing your way when the next maintainer needs to subclass
> your
> own subclass and spends hours trying to figure out why all the examples he
> can find do not seem to work for him.

True! But unfortunately it seems to be my only option. Ideally,
Schema->load_namespaces would automatically detect and apply ResultSource
classes, just like it does for Result and ResultSet classes. Then I wouldn't
need this hack.

-- =

Lyle Kopnicky | Software Developer
503.284.7581 x260 | lwk at rentrak.com <axc at rentrak.com>
RENTRAK | www.rentrak.com | NASDAQ: RENT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20110923/8aa=

More information about the DBIx-Class mailing list