/[A3C]/lib/A3C/Model/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 /lib/A3C/Model/hrEduOrg.pm

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

revision 127 by dpavlin, Thu May 22 20:48:42 2008 UTC revision 128 by dpavlin, Mon May 26 17:51:43 2008 UTC
# Line 3  use strict; Line 3  use strict;
3  use warnings;  use warnings;
4    
5  use Jifty::DBI::Schema;  use Jifty::DBI::Schema;
6    use Data::Dump qw/dump/;
7    
8    sub create {
9            warn "# create",dump(@_);
10            my $self = shift;
11            my %data = @_ or die "no data?";
12            foreach my $col ( keys %data ) {
13                    warn "## ref($col)=",ref($col);
14                    $data{$col} = join(' <*> ', @{$data{$col}}) if ref( $data{$col} ) eq 'ARRAY';
15            }
16            warn "## data = ",dump( %data );
17            $self->SUPER::create( %data );
18    }
19    
20  use A3C::Record schema {  use A3C::Record schema {
21    

Legend:
Removed from v.127  
changed lines
  Added in v.128

  ViewVC Help
Powered by ViewVC 1.1.26