in reply to Re: Re: Re: Inheritance and objects tied to a database
in thread Inheritance and objects tied to a database
So that would involve untieing the $self->{data} in the child class, but NOT untieing it in the parent class? That's the only way I imagine it would work, but I don't know how to do that (how to prevent calling the parent's DESTROY() method. If both parent's and child's DESTROY() methods are called, the parent's DESTROY() method still overwrited the tied data with its copy as opposed to updated child's data.
Maybe I'm just trying to do something that doesn't really have to be done. I just want to know if I'm going all wrong about the whole thing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Inheritance and objects tied to a database
by gjb (Vicar) on Dec 20, 2002 at 13:26 UTC | |
by relax99 (Monk) on Dec 20, 2002 at 14:02 UTC | |
|
Re[5]: Inheritance and objects tied to a database
by Tanalis (Curate) on Dec 20, 2002 at 13:27 UTC | |
by relax99 (Monk) on Dec 20, 2002 at 13:47 UTC | |
by Tanalis (Curate) on Dec 20, 2002 at 13:57 UTC | |
by relax99 (Monk) on Dec 20, 2002 at 14:06 UTC |