Re: [CDBI] TEMP columns not persisting through $self->add_to_<something>s
"Perrin Harkins" <[email protected]> Mon, 14 May 2007 22:52:11 -0400
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
On 5/14/07, Berg, Eric <[email protected]> wrote: > But basically, I call the method that does the add_to_actions(), and > when I return from that method, the temp columns in the Action objects > that I get with $test->actions have only the Primary column. Hmm, I think that's what I just said. When you return from load_action_defs(), unless you pass references to the objects you created, they are gone forever, along with all their TEMP data. When you call actions(), it fetches fresh objects from the database, and of course they have no TEMP values. Either add real columns for these values, or pass around the objects in memory. - Perrin