[Dbix-class] latest DBIx::Class "Not inlining a constructor..."
Peter Rabbitson
rabbit+dbic at rabbit.us
Wed Sep 14 13:29:03 GMT 2016
On 09/14/2016 02:35 PM, Bernhard Bauch wrote:
> dear all,
>
> i did upgrade all modules (installed from scratch all catalyst, dbix:class, etc. modules -- so also moose)
Right... that'll be more difficult to pinpoint. A simple set of classes
resembling your setup seems to work just fine for me with latest Moose
and stuff (see below).
The best advice I can give at this point is to keep "trimming down" your
application ensuring the errors are present, and showing us a minimal
example that does not work for you. The way you have things presently -
there are way too many moving parts to attempt a remote diagnostic :/
perl -we '
{
package MyBaseApp::Schema::ResultSet::Foo;
use Moose;
use namespace::autoclean;
use MooseX::NonMoose;
extends "DBIx::Class::ResultSet";
sub BUILDARGS { $_[2] }
__PACKAGE__->meta->make_immutable;
}
{
package MyBaseApp::Schema::Result::Foo;
use base "DBIx::Class::Core";
__PACKAGE__->table("foo");
__PACKAGE__->add_columns("bar");
__PACKAGE__->resultset_class("MyBaseApp::Schema::ResultSet::Foo");
}
{
package MyBaseApp::Schema;
use base "DBIx::Class::Schema";
__PACKAGE__->register_class( Foo => "MyBaseApp::Schema::Result::Foo");
}
my $q =
MyBaseApp::Schema->connect("dbi:SQLite::memory:")->resultset("Foo")->as_query;
warn $$q->[0];
'
producing
(SELECT me.bar FROM foo me) at -e line 37.
More information about the DBIx-Class
mailing list