--- trunk/lib/Strix/User.pm 2008/07/13 12:08:59 105 +++ trunk/lib/Strix/User.pm 2008/07/13 12:22:14 106 @@ -5,7 +5,9 @@ use Data::Dump qw/dump/; -my $users_table = Strix::Schema->Schema()->table('users'); +sub collection_table { 'users' } + +my $users_table = Strix::Schema->Schema()->table( collection_table ); has_table( $users_table ); @@ -19,7 +21,7 @@ ; -has_many 'rows' => ( +has_many 'foobar' => ( table => $users_table, select => $select, # bind_params => sub { $_[0]->message_id() }, @@ -27,4 +29,6 @@ #warn dump( map { $_->name } $users_table->columns ); +with 'Frey::Collection'; + 1;