[CDBI] Class::DBI::Sweet Errors

Dave Mabe davemabe at gmail.com
Tue Jan 10 00:00:41 GMT 2006


I just switched over to using Class::DBI::Sweet from Class::DBI and
now I get errors when I call find_or_create for a class.

Can't locate object method "insert" via package "Class::DBI::Sweet" at
/usr/lib/perl5/site_perl/5.8.2/Class/DBI/Sweet.pm line 630.

   context:
      ...

      626:       if ( $self->cache ) {
      627:       $self->cache->set( $self->_staleness_cache_key,
time() );
      628:       }
      629:

      630:       return $self->SUPER::insert(@_);
      631:       }
      632:

      633:       sub update {
      634:       my $self = shift;

It works fine under Class::DBI.  Any ideas?

--
Dave Mabe




More information about the ClassDBI mailing list