[Catalyst] CDBI issue?

Perrin Harkins perrin at elem.com
Wed May 11 23:33:09 CEST 2005


On Wed, 2005-05-11 at 14:31 -0700, Alan Humphrey wrote:
> Many thanks!  The discussion you pointed me to included another
> alternative, which is working for me.
> 
> 	   $site =
> BirdWeb::Admin::M::BirdWebDB::BirdingSites->retrieve($parms->{id});
> 	   eval {
> 		 $site->update_from_form( $checked );
> 		 $site->remove_from_object_index();
> 	   };
> 
> The "remove_from_object_index" call does the trick.

Cool.  Keep in mind that this *does* mean you have a scoping problem
with this object.  I don't know if that's because of Catalyst or not,
but some reference to this object in your code (or in Catalyst) is not
going away at the end of the request.

- Perrin




More information about the Catalyst mailing list