--- trunk/lib/A3C/HrEduOrg.pm 2008/07/11 23:01:54 102 +++ trunk/lib/A3C/HrEduOrg.pm 2008/07/13 12:22:14 106 @@ -5,7 +5,9 @@ use Data::Dump qw/dump/; -my $table = A3C::Schema->Schema()->table('hr_edu_orgs'); +sub collection_table { 'hr_edu_orgs' } + +my $table = A3C::Schema->Schema()->table( collection_table ); has_table( $table ); @@ -16,11 +18,13 @@ ->limit(10) ; -has_many 'rows' => ( +has_many 'first10' => ( table => $table, select => $select, ); #warn dump( map { $_->name } $users_table->columns ); +with 'Frey::Collection'; + 1;