I have device a model class that extends CBLModel. I have also registered
this class with database.modelFactory. I was hoping that thanks to that,
the type property of my document would be set automatically when I create
it using let book = Book(newDocumentInDatabase:database), but it is not.
And I tried overriding init like specified in the doc:
init!(document: CBLDocument!) {
super.init(document: document)
self.type = "book"
}
But the Swift compiler complains that it cannot find the CBLDocument class.
Did I miss something?
---
Sébastien Arbogast
http://sebastien-arbogast.com
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/CAG1DMa_CnZJ4daE_KMTwVbm-th_v9DQMCUEeEPmZ2ya8Wvd1QA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.