DBIx-Class-Events
view release on metacpan or search on metacpan
lib/DBIx/Class/Events.pm view on Meta::CPAN
my ( $class, @args ) = @_;
my $self = $class->next::method(@args);
my %inserted = $self->get_columns;
$self->event( insert => { details => \%inserted } );
return $self;
};
sub update {
my ( $self, @args ) = @_;
# Do this here instead of letting our parent do it
# so that we can use get_dirty_columns.
$self->set_inflated_columns(@args) if @args;
my %changed = $self->get_dirty_columns;
$self->next::method(); # we already set_inflated_columns
( run in 1.445 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )