Hacking the object index

[prev] [thread] [next] [Date index for 2004/09/15]

From: William McKee
Subject: Hacking the object index
Date: 21:32 on 15 Sep 2004
I'm having some problems with object scope which are resulting in errors
such as the following:

 Operation `bool': no method found, argument in overloaded package
 Class::DBI::Object::Has::Been::Deleted at
 ../perl5/Class/DBI/Relationship/MightHave.pm line 46.

As you can see by the MightHave reference, I have classes with
relationships. In one case, I was able to simply undef all objects and
move on. In another case, I've tried to find all possible instances that
I may have instantiated but am still getting the error.

Is there a way to dump the contents of the %Live_Objects index to see
what I'm missing? For now I've hacked in support for this.

Also, is there any way to get CDBI to give me the original class of a
deleted object? That would be *really* nice in some situations.


Thanks,
William

        -- 
        Knowmad Services Inc.
http://www.knowmad.com

Hacking the object index
William McKee 21:32 on 15 Sep 2004

Re: Hacking the object index
Perrin Harkins 14:15 on 16 Sep 2004

Re: Hacking the object index
William McKee 15:26 on 16 Sep 2004

Re: Hacking the object index
Perrin Harkins 15:53 on 16 Sep 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52