> init(inDatabase database: CBLDatabase, ofType type: String){
>
> super.init(document: self.document)
That's not the right inherited initializer. (In particular, it should be a red
flag that you're calling a method on self before calling the superclass
initializer. I'm surprised that's not a compile error.)
The right initializer to call would be
super.init(newDocumentInDatabase: database)
And then don't set self.database.
> override init(document: CBLDoc) {
This should be unnecessary, since it has no effect (just calls super).
—Jens
--
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/64C6DFD7-7B1E-42E4-A756-ADD1FBA092BF%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.