projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kivitendo-CSS: auskommentierten Inhalt entfernt
[kivitendo-erp.git]
/
SL
/
DB
/
CsvImportProfileSetting.pm
diff --git
a/SL/DB/CsvImportProfileSetting.pm
b/SL/DB/CsvImportProfileSetting.pm
index
6da5b34
..
11ffb16
100644
(file)
--- a/
SL/DB/CsvImportProfileSetting.pm
+++ b/
SL/DB/CsvImportProfileSetting.pm
@@
-5,9
+5,19
@@
package SL::DB::CsvImportProfileSetting;
use strict;
use strict;
-use SL::DB::MetaSetup::CsvImportProfileSetting;
+use Rose::DB::Object::Helpers qw(clone);
+
+require SL::DB::MetaSetup::CsvImportProfileSetting;
+
+__PACKAGE__->meta->initialize;
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
__PACKAGE__->meta->make_manager_class;
__PACKAGE__->meta->make_manager_class;
+# Helpers' clone_and_reset also kills compund keys like in this case kay+id
+sub clone_and_reset {
+ my $clone = $_[0]->clone;
+ $clone->id(undef);
+ return $clone;
+}
+
1;
1;