Re: cascading update
[prev]
[thread]
[next]
[Date index for 2005/04/08]
On Fri, Apr 08, 2005 at 07:08:20PM +0100, jldommer@xxxx.xxxxx.xxx wrote:
> I've been searching the list archive, but I haven't found anything
> that seems to deal with this. Is there any way that I can do cascading
> sumbit other than with the workarounds that I'm currently implementing?
This is completely untested, but you add a before_update() trigger to do
something along the lines of:
__PACKAGE__->add_trigger('before_update' => sub {
my $self = shift;
$self->$_->update foreach
grep $self->$_->isa("Class::DBI"), $self->is_changed;
}
Tony
|
|
Re: cascading update
Tony Bowden 19:17 on 08 Apr 2005
|