Skip Menu |

This queue is for tickets about the DBIx-Class-DynamicDefault CPAN distribution.

Report information
The Basics
Id: 104350
Status: new
Priority: 0/
Queue: DBIx-Class-DynamicDefault

Owner: Nobody in particular
Requestors: kes-kes [...]

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)

Subject: it is not possible to figure out for which column update is
Download (untitled) / with headers
text/plain 341b
__PACKAGE__->add_columns( ,listener1 => { dynamic_default_on_update => 'sl' } ,listener2 => { dynamic_default_on_update => 'sl' } ) When my method 'sl' is invoked, I can not figureout which column is updated now: listener1 or listener2 It will be good, if you pass to the callback as first argument the name of column being updated
From: kes-kes [...]
Download (untitled) / with headers
text/plain 628b
Another problem I must autoupdate columns only if they are both are null. if( !defined $self->listener1 && !defined $self->listener2 ) { ... } After updating first column I have false at condition and can not update second column. You must provide hashref to old/new values. OR: can I have callback to 'before_update' method for a whole row? So I can do: sub row_before_update { my( $self, $row ) = @_; if( !defined $row->listener1 && !defined $row->listener2 ) { for( $row->address->subnet->server->listeners({type => $row->package->tarif->type}) ) { $row->{'listener' . $_->number} = $_->ip; } } return $row; }

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to