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

People
Owner: Nobody in particular
Requestors: kes-kes [...] yandex.ru
Cc:
AdminCc:

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 [...] yandex.ru
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 Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.