/[Frey]/trunk/lib/Strix/User.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/Strix/User.pm

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

revision 105 by dpavlin, Thu Jul 10 19:37:19 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 $users_table = Strix::Schema->Schema()->table('users');  sub collection_table { 'users' }
9    
10    my $users_table = Strix::Schema->Schema()->table( collection_table );
11    
12  has_table( $users_table );  has_table( $users_table );
13    
# Line 19  my $select = Line 21  my $select =
21          ;          ;
22    
23    
24  has_many 'rows' => (  has_many 'foobar' => (
25          table => $users_table,          table => $users_table,
26          select => $select,          select => $select,
27  #       bind_params => sub { $_[0]->message_id() },  #       bind_params => sub { $_[0]->message_id() },
# Line 27  has_many 'rows' => ( Line 29  has_many 'rows' => (
29    
30  #warn dump( map { $_->name } $users_table->columns );  #warn dump( map { $_->name } $users_table->columns );
31    
32    with 'Frey::Collection';
33    
34  1;  1;

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

  ViewVC Help
Powered by ViewVC 1.1.26