[Dbix-class] Schema::Versioned error under DBIC v0.08112
Carl Franks
fireartist at gmail.com
Tue Oct 13 14:38:54 GMT 2009
I don't know which version of DBIx::Class this application last ran
successfully under - but running 0.08112 I'm getting the following
error message:
Couldn't instantiate component "CAMS::CMS::Model::CMS", "Could not
load class (CMS::Schema) because : Can't use string ("CMS::Schema") as
a HASH ref while "strict refs" in use at
/opt/perl-5.10.1/lib/site_perl/5.10.1/DBIx/Class/Schema/Versioned.pm
line 475.
It's being triggered by my call to__PACKAGE__->connection()
The 'use of hashref' is in DBIx::Class::Schema::Versioned::_on_connect()
Is my use of Schema::Versioned wrong?
My schema code is below.
package CMS::Schema;
use strict;
use warnings;
use base 'DBIx::Class::Schema';
our $VERSION = '42';
__PACKAGE__->load_classes;
__PACKAGE__->load_components('Schema::Versioned');
__PACKAGE__->connection('dbi:SQLite:dbname=/home/cafranks/checkout/cams-schema/cams.db'
);
__PACKAGE__->upgrade_directory('sql');
__PACKAGE__->backup_directory('sql/backups');
1;
More information about the DBIx-Class
mailing list