1 # This file has been auto-generated only because it didn't exist.
2 # Feel free to modify it at will; it will not be overwritten automatically.
4 package SL::DB::CsvImportReport;
8 use SL::DB::MetaSetup::CsvImportReport;
10 __PACKAGE__->meta->add_relationships(
12 type => 'one to many',
13 class => 'SL::DB::CsvImportReportRow',
14 column_map => { id => 'csv_import_report_id' },
18 __PACKAGE__->meta->make_manager_class;
19 __PACKAGE__->meta->initialize;
24 $self->_fold_rows unless $self->{folded_rows};
26 return $self->{folded_rows};
32 $self->{folded_rows} = [];
34 for my $row_obj (@{ $self->rows }) {
35 $::lxdebug->dump(0, "adding", $row_obj->row . ' ' . $row_obj->col . ' ' . $row_obj->value);
36 $self->{folded_rows}->[ $row_obj->row ] ||= [];
37 $self->{folded_rows}->[ $row_obj->row ][ $row_obj->col ] = $row_obj->value;
38 $::lxdebug->dump(0, "now", $self->{folded_rows});