-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
that.collectionName is not a function
on EmbeddedDocument
#26
Labels
Comments
Yup, you're right. Dumb mistake, but an easy fix. Also, just to be clear, make sure you're calling Should have the fix out soon with the rest of the bugs I'm working on. Thanks for pointing this out! |
+1 |
bvkimball
pushed a commit
to bvkimball/crypsis
that referenced
this issue
Jan 15, 2016
* upstream/master: (41 commits) Bumped version, updated CHANGELOG, and updated README Fixed serialization test for MongoDB IDs Deprecated 'id' alias on document object for issue scottwrobinson#20 Removing some inconsistencies with accessing the ID. Partially covers issue scottwrobinson#20 Consolidated hook code so it can be re-used throughout Document methods Moved collectionName method to BaseDocument. Fixes scottwrobinson#26 Added new ValidationError object, fixed some validation tests, fixed min/max validation, and fixed validation for array of embedded documents Fixed issue with running 'canonicalize' tests on travis-ci and bumped version Removed unused harmony-reflect dependency, updated CHANGELOG, and bumped version Updated CHANGELOG, README, and bumped version Removed --harmony-proxies flag from tests now that Proxy isn't used Added sanity check to 'required' tests Updated PR scottwrobinson#19 to conform to new collection naming Changed how you name collections Removed need for Proxy and harmony-reflect dependency Added a required key value validation. Adding .npmignore file Moved jshint settings out of package.json and in to .jshintrc file. Updated .gitignore for .jshintrc Removed custom harmony-reflect script and adding harmony-reflect as dependency Added tests for canonicalizing dates ...
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
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.
The text was updated successfully, but these errors were encountered: