AlexDenisov / iActiveRecord

ActiveRecord for iOS without CoreData, only SQLite
http://alexdenisov.github.com/iActiveRecord/
MIT License
354 stars 50 forks source link

Handle ActiveRecord serialization #48

Closed alexiscreuzot closed 10 years ago

alexiscreuzot commented 10 years ago

I'd like to save database content in serialized format. For now, using SBJSON, is get this error :

-JSONRepresentation failed. Error is: JSON serialisation not supported for <MyActiveRecordClass>

Is there a way to circumvent this?

alexiscreuzot commented 10 years ago

Got it to work by overriding the - (id) proxyForJson method in my ActiveRecord subclass.

AlexDenisov commented 10 years ago

Sorry... I forgot about this issue... >.<