Class-Persist
view release on metacpan or search on metacpan
lib/Class/Persist/Proxy.pm view on Meta::CPAN
$self->owner( $owner );
}
$self->real_id( $obj->oid );
$obj->_duplicate_from( $self );
bless $obj => $class;
}
sub AUTOLOAD {
my $self = shift;
$self = $self->load() or return; # die "Can't find in DB from ".(caller)[0]." line ".(caller)[2];
my $meth = substr($AUTOLOAD, rindex($AUTOLOAD, ':') + 1);
my $can = $self->can($meth) or EO::Error::Method::NotFound->throw(text => "Method $meth unknownin class ".ref($self));
$can->($self, @_);
}
sub DESTROY { 1 }
sub clone {
my $self = shift;
$self = $self->load or return;
( run in 0.835 second using v1.01-cache-2.11-cpan-a3c8064c92c )