[Dbix-class] DBIx::Class::Schema::Loader Can't use string error

Oleg Kostyuk cub.uanic at gmail.com
Wed Oct 27 15:49:53 GMT 2010


Typo in your schema definition?
I think, you wrote somewhere "QD1x::Schema::Result::EntryAttri"
instead of "QD1x::Schema::Result::EntryAttribute"
Try:
  grep -r "QD1x::Schema::Result::EntryAttri\\>" .

Also, you could add "debug => 1" to make_schema_at's loader options.

HTH


2010/10/27 Dave Howorth <dhoworth at mrc-lmb.cam.ac.uk>:
> I just installed DBIx::Class::Schema::Loader on a new machine (what a
> lot of dependencies!) and tried to run this code:
>
> #!/usr/bin/perl
> use strict;
> use warnings;
>
> use DBIx::Class::Schema::Loader qw/ make_schema_at /;
>
> make_schema_at( 'QD1x::Schema',
>                {
>                   dump_directory => '.',
>                },
>                [
>                   'dbi:mysql:host=suse3;database=q_d_1',
>                   'dhoworth',
>                   '',
>                ],
> );
>
>
> It seems to have produced reasonable looking schema files but it also
> produced an error when it ran:
>
> $ ./create-schema.pl
> Dumping manual schema for QD1x::Schema to directory . ...
> Schema dump completed.
> Failed to reload class QD1x::Schema::Result::EntryAttribute: Can't use
> string ("QD1x::Schema::Result::EntryAttri") as a HASH ref while "strict
> refs" in use at /usr/local/share/perl/5.10.1/DBIx/Class/Row.pm line 864.
> Compilation failed in require at (eval 650) line 3.
>
> I checked and "DBIx::Class is up to date (0.08123)."
>
> Does anybody have any idea what the error means?
>
> Thanks, Dave
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>



-- 
Sincerely yours,
Oleg Kostyuk (CUB-UANIC)



More information about the DBIx-Class mailing list