X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FCDBICompat%2FRetrieve.pm;h=2ddd4b2976d9677241badb2f5c74f794c407ce0c;hb=5e0eea3522876a30453af24097507198bbbc9409;hp=e701cfc0365684fbc96a70fe77074103d52dfb6c;hpb=869e9aac2fdd3be4c3a3b3bf2af0935432ee0690;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/CDBICompat/Retrieve.pm b/lib/DBIx/Class/CDBICompat/Retrieve.pm index e701cfc..2ddd4b2 100644 --- a/lib/DBIx/Class/CDBICompat/Retrieve.pm +++ b/lib/DBIx/Class/CDBICompat/Retrieve.pm @@ -2,8 +2,13 @@ package # hide from PAUSE DBIx::Class::CDBICompat::Retrieve; use strict; + +# even though fatalization has been proven over and over to be a universally +# bad idea, this line has been part of the code from the beginning +# leaving the compat layer as-is, something may in fact depend on that use warnings FATAL => 'all'; +use base 'DBIx::Class'; sub retrieve { my $self = shift; @@ -74,7 +79,7 @@ sub construct { my $class = shift; my $obj = $class->resultset_instance->new_result(@_); $obj->in_storage(1); - + return $obj; }