FCModel icon indicating copy to clipboard operation
FCModel copied to clipboard

Maybe -unserializedRepresentation... should be a class method?

Open ahti opened this issue 11 years ago • 0 comments

Just a quick thought: I just made the mistake to implement -unserializedRepresentation... in a way that relied on another database field being loaded already.

This mistake could be made impossible by changing the method to be a class method. Alternatively, a way to specify in which order database values are unserialized could be provided, although that could well be unnecessary complexity.

What I am worried about is people making the same mistake I did and having it work fine in development just by chance, and then having a change in e.g. how enumerateObjectsAndKeys... works screw up apps.

ahti avatar Oct 04 '14 19:10 ahti