[Dbix-class] latest DBIx::Class "Not inlining a constructor..."

Bernhard Bauch bauch at zsi.at
Wed Sep 14 09:13:18 GMT 2016


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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20160914/ce501b31/attachment.html>
-------------- 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/ce501b31/attachment.pgp>


More information about the DBIx-Class mailing list