Re: Order of before_delete trigger in docs

[prev] [thread] [next] [Date index for 2005/06/27]

From: Marius Feraru
Subject: Re: Order of before_delete trigger in docs
Date: 07:44 on 27 Jun 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Jun 27, at 08:35 (+0100), 'Tony Bowden' wrote:
> On Mon, Jun 27, 2005 at 12:22:57AM -0700, Bill Moseley wrote:
>> DB::Role->add_trigger(before_delete => sub {
>>     my $role = shift;
>>     die "Can't delete Role ($role) -- In use by one or more Person records\n"
>>         if DB::PersonRole->search( { role => $role } )->first;
>> } );
>
> ???
>
> In the "classic" set-up for this a Role is one person in one movie.
> Deleting either the person or the movie should require the role to also
> be deleted.
>
> Are you using a different concept here?

Remember Tony that Bill is using Class::DBI::Loader magic ;-)

CDBI::Loader seems to be automagically creating all possible 
relationships between his tables, getting to where I stated in my 
previous message.


- -- 
Marius Feraru                                   http://www.altblue.com/
"It isn't easy being the parent of a three-years-old.
  However, it's a pretty small price to pay for having somebody
  around the house who understands computers."
-----BEGIN PGP SIGNATURE-----

iD8DBQFCv65on0ZKufYp8iURAqzAAJ47e/vbz53FiHw7HCyQdZy7NnUcQgCaAg0K
nbLQ/bnjRvW4VS1kc2BIzfk=
=UhCe
-----END PGP SIGNATURE-----

(message missing)

Order of before_delete trigger in docs
Bill Moseley 17:32 on 26 Jun 2005

Re: Order of before_delete trigger in docs
Tony Bowden 18:56 on 26 Jun 2005

Re: Order of before_delete trigger in docs
Marius Feraru 01:34 on 27 Jun 2005

Re: Order of before_delete trigger in docs
Bill Moseley 07:22 on 27 Jun 2005

Re: Order of before_delete trigger in docs
Tony Bowden 07:35 on 27 Jun 2005

Re: Order of before_delete trigger in docs
Marius Feraru 07:44 on 27 Jun 2005

Re: Order of before_delete trigger in docs
Tony Bowden 07:47 on 27 Jun 2005

Re: Order of before_delete trigger in docs
Marius Feraru 07:54 on 27 Jun 2005

Re: Order of before_delete trigger in docs
Marius Feraru 12:35 on 27 Jun 2005

Re: Order of before_delete trigger in docs
William Ross 14:03 on 27 Jun 2005

Re: Order of before_delete trigger in docs
Bill Moseley 15:11 on 27 Jun 2005

Re: Order of before_delete trigger in docs
Charles Bailey 16:23 on 27 Jun 2005

Re: Order of before_delete trigger in docs
William Ross 19:37 on 27 Jun 2005

Re: Order of before_delete trigger in docs
Tony Bowden 19:54 on 27 Jun 2005

Re: Order of before_delete trigger in docs
William Ross 20:52 on 27 Jun 2005

Generated at 16:37 on 28 Jul 2005 by mariachi v0.52