DBIx-Class-Service

 view release on metacpan or  search on metacpan

inc/DBIx/Class/TimeStamp.pm  view on Meta::CPAN


    foreach my $column ( @columns ) {
        next if defined $self->get_column( $column );
        my $accessor = $self->column_info($column)->{accessor} || $column;
        $self->$accessor($now);
    }
    
    return $self->next::method(@_);
}

sub update {
    my $self = shift;

    my $now  = $self->get_timestamp();
    my %dirty = $self->get_dirty_columns();
    my @columns = @{ $self->__column_timestamp_triggers()->{on_update} };

    foreach my $column ( @columns ) {
        next if exists $dirty{ $column };
        my $accessor = $self->column_info($column)->{accessor} || $column;
        $self->$accessor($now);

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.489 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )