inflator working transparently
[dbsrgits/DBIx-Class-ResultSet-WithMetaData.git] / lib / DBIx / Class / WithMetaData / Inflator.pm
CommitLineData
4cac0ed6 1package DBIx::Class::WithMetaData::Inflator;
2
3use strict;
4use warnings;
5use Moose;
6extends 'DBIx::Class::ResultClass::HashRefInflator';
7
8around inflate_result => sub {
9 my $orig = shift;
10 my $self = shift;
11
12 my $hash = $self->$orig(@_);
13
14 my ($source, @rest) = @_;
15 my $row = $source->result_class->inflate_result(@_);
16 warn $row;
17 warn $self;
18 return [$hash, $row];
19};
20
211;