[Dbix-class] Re: Get table name from ResultSet class?
lwk at rentrakmail.com
Thu Sep 22 18:10:22 GMT 2011
On Thu, Sep 22, 2011 at 2:44 AM, Roman Daniel <roman.daniel at davosro.cz>
It is not clear from your code sample,
> but your __PACKAGE__->table_class call has to occur before
> __PACKAGE__->table call, otherwise it has no effect.
Ah, of course. That was one of those things that occurred to me, but I
didn't pursue it, because it seems I can't put any code above the
__PACKAGE__->table call, because DBIx::Class::Schema::Loader will be broken:
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-08-10 17:33:49
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yDSIDkS8OrqYpQJRIWPhkA
# You can replace this text with custom code or comments, and it will be
preserved on regeneration
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...
More information about the DBIx-Class