package My::DB::CD;
sub _dumper_hook {
- my $obj = shift;
- return bless {
- %{ $obj },
+ $_[0] = bless {
+ %{ $_[0] },
result_source => undef,
- }, ref($obj);
+ }, ref($_[0]);
}
[...]
will automagically clean up your data before printing it. See
L<Data::Dumper/EXAMPLES> for more information.
-
=head2 Retrieving a row object's Schema
It is possible to get a Schema object from a row object like so,