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();
sub init_db {
my $class_or_self = shift;
my $class = ref($class_or_self) || $class_or_self;
- my $type = $class =~ m/::Auth/ ? 'LXOFFICE_AUTH' : 'LXOFFICE';
+ my $type = $class =~ m/::Auth/ ? 'KIVITENDO_AUTH' : 'KIVITENDO';
return SL::DB::create(undef, $type);
}
my $pk = ref($self)->meta->primary_key;
delete @attributes{$pk->column_names} if $pk;
+ delete @attributes{@rose_reserved_methods};
return $self->_assign_attributes(%attributes);
}