> On Jan 6, 2015, at 7:43 AM, Sebastien ARBOGAST <[email protected]> 
> wrote:
> 
> All this seems overly complicated. Why doesn't +modelForDocument do it 
> automatically?

Because no one's thought of implementing it before, and because we're a small 
team and there's so much stuff to do. :/
Please file an issue requesting this functionality. (And if you're interested 
in implementing it, a pull request would be welcome.)

> 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?

Well, the "type" property is generally just a convention, not anything 
built-in. But you're correct that the ModelFactory uses this convention, so it 
would make sense for Model to use that too.

—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/65C99C75-A169-41EA-B563-007ADE8B8438%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to