BugsBiteBugs / sqlitepersistentobjects

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

Do not use setter= getter= for properties! #70

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is not a *code* bug, but rather a *documentation* bug.

Shortly, I observed that using the property declaration attributes
"setter=" and "getter=" the library do not restore correctly the objects
from db. Not a big limit, but should be documented ;)

The problem is due to how the "theProps" NSDictionary is stored. The effect
is that in the SQLitePersistentObject.m file, row 279:

   NSString *colType = [theProps valueForKey:propName];

colType will be nil for properties which attribute name is different from
getter name.

If you need more information, drop me a line.

Hope this helps,

V.

Original issue reported on code.google.com by vdu...@gmail.com on 28 May 2009 at 10:40