On Thu, Sep 22, 2011 at 2:44 AM, Roman Daniel <[email protected]>
 wrote:

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
...
__PACKAGE__->table("my_table");
...
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-08-10 17:33:49
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yDSIDkS8OrqYpQJRIWPhkA

__PACKAGE__->table_class('My::Schema::ResultSource::MyTable');

# 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 | [email protected] <[email protected]>
RENTRAK | www.rentrak.com | NASDAQ: RENT
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to