Feature request
[prev]
[thread]
[next]
[Date index for 2004/07/13]
I am wondering if there is a proper way to do the following:
- Given a reference to a cdbi derived object, I would like it to "refresh" its data from the database.
In the past, I have been doing this like so:
- By manually deleting hash keys corresponding to table columns. This always seemed like a bad way, since I am kinda getting into the guts/privates of the object.
- Another way is to simply retrieve a fresh object by the same primary keys as the one in hand. This no longer works with the advent of the LiveObjects uniquing/caching mechanism, since I will just get the same ref everytime I retrieve, off of the LiveObjects.
Question : Is there a prefered method for refreshing/invalidating an object's data?
Suggestion: It would be really nice to have a method, say "refresh" which would refetch the data from DB.
Max
|
Feature request
Siamak Pazirandeh 16:46 on 13 Jul 2004
|