/[Frey]/trunk/lib/A3C/HrEduOrg.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/A3C/HrEduOrg.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 102 by dpavlin, Fri Jul 11 23:01:54 2008 UTC revision 106 by dpavlin, Sun Jul 13 12:22:14 2008 UTC
# Line 5  use Fey::ORM::Table; Line 5  use Fey::ORM::Table;
5    
6  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
7    
8  my $table = A3C::Schema->Schema()->table('hr_edu_orgs');  sub collection_table { 'hr_edu_orgs' }
9    
10    my $table = A3C::Schema->Schema()->table( collection_table );
11    
12  has_table( $table );  has_table( $table );
13    
# Line 16  my $select = A3C::Schema->SQLFactoryClas Line 18  my $select = A3C::Schema->SQLFactoryClas
18          ->limit(10)          ->limit(10)
19          ;          ;
20    
21  has_many 'rows' => (  has_many 'first10' => (
22          table => $table,          table => $table,
23          select => $select,          select => $select,
24  );  );
25    
26  #warn dump( map { $_->name } $users_table->columns );  #warn dump( map { $_->name } $users_table->columns );
27    
28    with 'Frey::Collection';
29    
30  1;  1;

Legend:
Removed from v.102  
changed lines
  Added in v.106

  ViewVC Help
Powered by ViewVC 1.1.26