Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create orm.Base.prototype.create #16

Open
robertkeizer opened this issue Aug 18, 2013 · 1 comment
Open

Create orm.Base.prototype.create #16

robertkeizer opened this issue Aug 18, 2013 · 1 comment

Comments

@robertkeizer
Copy link
Member

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.

@ghost ghost assigned robertkeizer Aug 18, 2013
@robertkeizer
Copy link
Member Author

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
Projects
None yet
Development

No branches or pull requests

1 participant