shuiyouren / sqlitepersistentobjects

Automatically exported from code.google.com/p/sqlitepersistentobjects
0 stars 0 forks source link

Transients Unneccesarily Set #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set up a transients method that provides an array of properties not stored 
in DB.
2. Load a record/instance using a find method.
3. Check value of a transient property.

What is the expected output? What do you see instead?
The transient property should be empty/nil.  The transient property is found to 
be allocated and 
initialized with an empty value.

Please provide any additional information below.
My suggestion is to remove transient property keys before returning from the 
propertiesWithEncodedTypes method.  This could mean that other provisions for 
removing 
transients in other parts of the code is redundant.  This way seems more 
efficient. See attached 
diff.

Original issue reported on code.google.com by prau...@gmail.com on 12 Apr 2009 at 8:24

Attachments: