X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FObject.pm;h=c11fb3f5ae48586b5df75e75f65f557a77787102;hb=6d75a1bc95b6b7ea7c5a348fffc37a2b7fea35fd;hp=c072e90117c009c000ee4fec3ea01a31e93467cc;hpb=841d44c00aae1166a0721e40dc2f9ffb7b9ac5b5;p=kivitendo-erp.git diff --git a/SL/DB/Object.pm b/SL/DB/Object.pm index c072e9011..c11fb3f5a 100755 --- a/SL/DB/Object.pm +++ b/SL/DB/Object.pm @@ -14,6 +14,11 @@ use SL::DB::Object::Hooks; use base qw(Rose::DB::Object); +my @rose_reserved_methods = qw( + db dbh delete DESTROY error init_db _init_db insert load meta meta_class + not_found save update import +); + sub new { my $class = shift; my $self = $class->SUPER::new(); @@ -50,6 +55,7 @@ sub assign_attributes { my $pk = ref($self)->meta->primary_key; delete @attributes{$pk->column_names} if $pk; + delete @attributes{@rose_reserved_methods}; return $self->_assign_attributes(%attributes); }