Skip Menu |

This queue is for tickets about the DBIx-Class-Schema-Loader CPAN distribution.

Report information
The Basics
Id: 40214
Status: resolved
Priority: 0/
Queue: DBIx-Class-Schema-Loader

People
Owner: Nobody in particular
Requestors: TJC [...] cpan.org
Cc: bsb [...] bereft.net
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.04005
  • 0.04999_05
Fixed in: (no value)



CC: bsb [...] bereft.net
Subject: result{,set}_namespace option breaks with arrayref parameters
::Loader accepts and passes-through namespace options to ::Schema, however it fails to pass through the (valid) arrayref parameters. Example: package My::Schema; __PACKAGE__->loader_options( use_namespaces => 1, result_namespace => [qw(Foo Bar Baz)], resultset_namespace => [qw(Million Billion Trillion)] ); 1; After calling My::Schema->connect($dsn); you find that your packages have been saved into the My::Schema::ARRAY(0x12345678)::... namespace. This appears to be related to _make_src_class() in .../Schema/Loader/Base.pm, where the attribute seems to be handled as a scalar only.
fixed in git
Fixed in 0.07011