Closed ijsf closed 8 years ago
Yup, you're right. Dumb mistake, but an easy fix.
Also, just to be clear, make sure you're calling save()
on the Document
and not EmbeddedDocument
object.
Should have the fix out soon with the rest of the bugs I'm working on. Thanks for pointing this out!
+1
I am having an issue when trying to create (and save) an
EmbeddedDocument
. I have the following class:Now, when I create a
Reminder
instance that does not adhere to the above, e.g. theenabled
property is missing, like in this example:I get the following error:
This is obviously an artifact of the new
collectionName
functionality in thevalidate
function inside camo. Except,collectionName
does not exist inEmbeddedDocument
instances.Probably quite an easy fix.