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.