[Dbix-class] latest DBIx::Class "Not inlining a constructor..."
Bernhard Bauch
bauch at zsi.at
Wed Sep 14 10:48:12 GMT 2016
hey again,
correction:
there are now errors. when i do
> http://search.cpan.org/~ribasushi/DBIx-Class-0.08271/lib/DBIx/Class/ResultSet.pm#CUSTOM_ResultSet_CLASSES_THAT_USE_Moose <http://search.cpan.org/~ribasushi/DBIx-Class-0.08271/lib/DBIx/Class/ResultSet.pm#CUSTOM_ResultSet_CLASSES_THAT_USE_Moose>for all my resultset-classes
but i receive lots of warnings (for every ResulSet class i have) when starti my app.. like
> Not inlining a constructor for MyApp::Schema::ResultSet since its parent MyBaseApp::Schema::ResultSet doesn't contain a constructor named 'new'. If
> you are certain you don't need to inline your constructor, specify inline_constructor => 0 in your call to MyApp::Schema::ResultSet->meta->make_immutable
anyideas why ?
bye, bernhard
> On 14 Sep 2016, at 11:13, Bernhard Bauch <bauch at zsi.at> wrote:
>
> dear all,
>
> i've been updating to the latest dbix::class version yesterday, and now my catalyst app / more the dbix::class schema does not work..
>
> i get the following error/warning when starting my App:
>
> ------------------------------------------------------------
> Not inlining a constructor for MyApp::Schema::ResultSet since its parent MyBaseApp::Schema::ResultSet doesn't contain a constructor named 'new'. If you are certain you don't need to inline your constructor, specify inline_constructor => 0 in your call to MyApp::Schema::ResultSet->meta->make_immutable
> ------------------------------------------------------------
>
> i did use moose in my ResultSet classes as descrived here:
> http://search.cpan.org/~ribasushi/DBIx-Class-0.08271/lib/DBIx/Class/ResultSet.pm#CUSTOM_ResultSet_CLASSES_THAT_USE_Moose <http://search.cpan.org/~ribasushi/DBIx-Class-0.08271/lib/DBIx/Class/ResultSet.pm#CUSTOM_ResultSet_CLASSES_THAT_USE_Moose>
>
> if i put
> __PACKAGE__->meta->make_immutable( inline_constructor => 0 );
>
> at the end of my packages, the warning disappears but its not working anyway.
>
> the following errors occure...e.g:
>
> "Can't call method "columns" on an undefined value at /usr/local/....DBIx/Class/ResultSet.pm line 3538
> or
> Can't use an undefined value as a HASH reference at /usr/local/.../DBIx/Class/ResultSet.pm line 477
>
>
> anyidea whats wrong here ?
>
> thanks for you support,
> bernhard
>
>
>
> —
> Bernhard Bauch
> Webdevelopment
>
> ZSI-Zentrum für Soziale Innovation GmbH
> Centre for Social Innovation
>
> Linke Wienzeile 246, A-1150 Wien, Austria
> Mail: bauch at zsi.at <mailto:bauch at zsi.at>
> Skype: berni-zsi
>
>
>
>
> _______________________________________________
> 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
>
> !DSPAM:57d914db170079883714898!
—
Bernhard Bauch
Webdevelopment
ZSI-Zentrum für Soziale Innovation GmbH
Centre for Social Innovation
Linke Wienzeile 246, A-1150 Wien, Austria
Mail: bauch at zsi.at <mailto:bauch at zsi.at>
Skype: berni-zsi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20160914/b2331a23/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20160914/b2331a23/attachment.pgp>
More information about the DBIx-Class
mailing list