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?
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/9873C0AE-3A3D-43FF-AFED-BD42E35FA2A0%40gmail.com.
On Jan 6, 2015, at 7:43 AM, Sebastien ARBOGAST <sebastien...@gmail.com> wrote:All this seems overly complicated. Why doesn't +modelForDocument do it automatically?
It has the information from the modelFactory. It uses it to load a model of the right type from the document, it would make sense that it saves a document with the right type from a model, don't you think?
--
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 mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/65C99C75-A169-41EA-B563-007ADE8B8438%40couchbase.com.