- # this is a workaround for a bug in the svn version 4794
-# if ( ref $self->{cond} eq 'ARRAY' and ref $self->{cond}[0] eq 'SCALAR' ){
- if ( ref $self->{cond} eq 'SCALAR' ){
- $self->{cond} = {};
- $object = $self->new( {} );
- }
- else {
- $object = $self->find( $updates, { key => 'primary' } ) || $self->new( {} );
- }