X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSerialize%2FStorable.pm;h=3d6d53959165d20494fef83a4fe6b28151c2efb1;hb=fb13a49f17a0e0a49638080a4bd826fb3702aebe;hp=bceb1b157fb72d09035318c2e0979e0402615e98;hpb=1b6fe47d369e84831a8a881813a53cca68694e72;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Serialize/Storable.pm b/lib/DBIx/Class/Serialize/Storable.pm index bceb1b1..3d6d539 100644 --- a/lib/DBIx/Class/Serialize/Storable.pm +++ b/lib/DBIx/Class/Serialize/Storable.pm @@ -1,9 +1,9 @@ package DBIx::Class::Serialize::Storable; use strict; use warnings; -use Storable; -use Carp::Clan qw/^DBIx::Class/; +use Storable(); +use DBIx::Class::Carp; carp 'The Serialize::Storable component is now *DEPRECATED*. It has not ' .'been providing any useful functionality for quite a while, and in fact ' @@ -14,10 +14,6 @@ sub STORABLE_freeze { my ($self, $cloning) = @_; my $to_serialize = { %$self }; - # The source is either derived from _source_handle or is - # reattached in the thaw handler below - delete $to_serialize->{result_source}; - # Dynamic values, easy to recalculate delete $to_serialize->{$_} for qw/related_resultsets _inflated_column/; @@ -28,10 +24,6 @@ sub STORABLE_thaw { my ($self, $cloning, $serialized) = @_; %$self = %{ Storable::thaw($serialized) }; - - # if the handle went missing somehow, reattach - $self->result_source($self->result_source_instance) - if !$self->_source_handle && $self->can('result_source_instance'); } 1; @@ -60,8 +52,8 @@ in its current implementation. Do not use! =head1 DESCRIPTION -This component adds hooks for Storable so that row objects can be -serialized. It assumes that your row object class (C) is +This component adds hooks for Storable so that result objects can be +serialized. It assumes that your result object class (C) is the same as your table class, which is the normal situation. =head1 HOOKS @@ -80,9 +72,9 @@ method. The deserializing hook called on the object during deserialization. -=head1 AUTHORS +=head1 AUTHOR AND CONTRIBUTORS -David Kamholz +See L and L in DBIx::Class =head1 LICENSE