Re: cascading update

[prev] [thread] [next] [Date index for 2005/04/08]

From: Tony Bowden
Subject: Re: cascading update
Date: 19:17 on 08 Apr 2005
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

cascading update
jldommer 18:08 on 08 Apr 2005

Re: cascading update
yoorobot 18:29 on 08 Apr 2005

Re: cascading update
jldommer 14:10 on 13 Apr 2005

Re: cascading update
Perrin Harkins 18:41 on 08 Apr 2005

Re: cascading update
Tony Bowden 19:17 on 08 Apr 2005

Generated at 12:49 on 16 Apr 2005 by mariachi v0.52