Create `orm.Base.prototype.create` #16

robertkeizer opened this Issue Aug 18, 2013 · 1 comment


None yet
1 participant

robertkeizer commented Aug 18, 2013

This will be used by o.B.p.find as well as any other functions that take in a document and create an instance of the class.

This should return a new instance, without executing the o.B.p.constructor to create a new object in the database.

robertkeizer was assigned Aug 18, 2013


robertkeizer commented Aug 18, 2013

This has been being worked on in the views branch.

Simply setting __id in the o.B.p.create function should do the trick. o.B.p.constructor should check to see if that attribute exists already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment