Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
drawcode
node-orm2
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
node-orm2
lib
Instance.js
on
hook-refactor
User selector
All users
Datepicker
All time
Commit history
Commits on Jul 3, 2013
Place save-related hooks closer to the actioning code.
Show description for fa32422
dxg
committed
fa32422
View commit details
Copy full SHA for fa32422
View code at this point
Browse repository at this point
Commits on Jul 2, 2013
Copies code from saveInstance to saveInstanceExtra (#215)
Show description for c48c3aa
dresende
committed
c48c3aa
View commit details
Copy full SHA for c48c3aa
View code at this point
Browse repository at this point
Commits on Jun 18, 2013
Only mark model as dirty if a property has _really_ changed
dxg
committed
a46b028
View commit details
Copy full SHA for a46b028
View code at this point
Browse repository at this point
Fix shell model hasOne bug
dxg
committed
29e8f86
View commit details
Copy full SHA for 29e8f86
View code at this point
Browse repository at this point
Fix hasOne infinite loop
dxg
committed
3e78e1e
View commit details
Copy full SHA for 3e78e1e
View code at this point
Browse repository at this point
WIP: Fix hasOne infinite loop & migrate tests to mocha
dxg
committed
b8918ae
View commit details
Copy full SHA for b8918ae
View code at this point
Browse repository at this point
Commits on Jun 12, 2013
Fix required property model.save only threw a single error with returnAllErrors=true.
Show description for 594f63e
dxg
committed
594f63e
View commit details
Copy full SHA for 594f63e
View code at this point
Browse repository at this point
Commits on Jun 6, 2013
Merge pull request #188 from dresende/hasone-validate
Show description for 6af31ea
dresende
committed
6af31ea
View commit details
Copy full SHA for 6af31ea
View code at this point
Browse repository at this point
Tries to use insert data when returned info from driver does not exist
dresende
committed
aaaceb7
View commit details
Copy full SHA for aaaceb7
View code at this point
Browse repository at this point
Fixes issue #187
dxg
committed
065e5f3
View commit details
Copy full SHA for 065e5f3
View code at this point
Browse repository at this point
Fix hasOne bug where saving a new instance with autoFetch true fails
dxg
committed
b4325ac
View commit details
Copy full SHA for b4325ac
View code at this point
Browse repository at this point
Commits on Jun 4, 2013
Allows passing an object instead of an instance as an hasOne asssociation
dresende
committed
a9383e6
View commit details
Copy full SHA for a9383e6
View code at this point
Browse repository at this point
Commits on May 31, 2013
Adds initial code to support passing associations when creating new instances (#162)
Show description for 6085fac
dresende
committed
6085fac
View commit details
Copy full SHA for 6085fac
View code at this point
Browse repository at this point
Commits on May 29, 2013
Revert non-autoincrement key fields change, since I cannot recreate the bug
dxg
committed
e8cb116
View commit details
Copy full SHA for e8cb116
View code at this point
Browse repository at this point
Added support for non-autoincrement key fields; check db driver info exists before applying it to data
esk525
authored and
dxg
committed
59cbf94
View commit details
Copy full SHA for 59cbf94
View code at this point
Browse repository at this point
Commits on May 28, 2013
Changes beforeCreate, beforeSave and beforeValidation to use Hooks.wait() (#167)
dresende
committed
e70cdc5
View commit details
Copy full SHA for e70cdc5
View code at this point
Browse repository at this point
Adds Hooks.wait to later on use it for async hooks (#167)
Show description for c043d80
dresende
committed
c043d80
View commit details
Copy full SHA for c043d80
View code at this point
Browse repository at this point
Commits on May 26, 2013
Fixed a bug when calling save() on an Instance
Show description for 542863c
jogly
committed
542863c
View commit details
Copy full SHA for 542863c
View code at this point
Browse repository at this point
Commits on May 25, 2013
Added Hook 'beforeValidation' prior to _all_ validations
Show description for 74f4c4f
jogly
committed
74f4c4f
View commit details
Copy full SHA for 74f4c4f
View code at this point
Browse repository at this point
Commits on May 2, 2013
Avoids passing property validations if property is null and is not required (#142)
dresende
committed
d17bb01
View commit details
Copy full SHA for d17bb01
View code at this point
Browse repository at this point
Avoids saving an instance if a property is null and is marked as required (#142)
dresende
committed
19492db
View commit details
Copy full SHA for 19492db
View code at this point
Browse repository at this point
Commits on Apr 22, 2013
Updates instance to pass keys to driver.insert() instead of id
Show description for 8517c02
dresende
committed
8517c02
View commit details
Copy full SHA for 8517c02
View code at this point
Browse repository at this point
Updates a few more parts of instance to avoid looking at opts.id and look at opts.keys
dresende
committed
03eeaa2
View commit details
Copy full SHA for 03eeaa2
View code at this point
Browse repository at this point
Changes instance initialization to add the multiple keys as properties instead of id
dresende
committed
b34958e
View commit details
Copy full SHA for b34958e
View code at this point
Browse repository at this point
Changes instance autoSave to check for multiple keys
dresende
committed
2c57863
View commit details
Copy full SHA for 2c57863
View code at this point
Browse repository at this point
Updates instance.remove() to check for multiple keys
dresende
committed
54d15dc
View commit details
Copy full SHA for 54d15dc
View code at this point
Browse repository at this point
Updates instance.save() to check for multiple keys
dresende
committed
1369c18
View commit details
Copy full SHA for 1369c18
View code at this point
Browse repository at this point
Fixes indentation on Instance.validate()
dresende
committed
d217e18
View commit details
Copy full SHA for d217e18
View code at this point
Browse repository at this point
Commits on Apr 18, 2013
Add validate model to instances
Arek W
committed
ec97206
View commit details
Copy full SHA for ec97206
View code at this point
Browse repository at this point
Commits on Apr 10, 2013
Changes instance.save() to support an hash of changes before saving (#111)
dresende
committed
9a74103
View commit details
Copy full SHA for 9a74103
View code at this point
Browse repository at this point
Commits on Apr 9, 2013
Correct 'returnAllErrors' setting behaviour
Arek W
committed
a7b33f0
View commit details
Copy full SHA for a7b33f0
View code at this point
Browse repository at this point
Commits on Apr 8, 2013
Fixes property defaultValue not being set if property is null (closes #104)
Show description for 87d6389
dresende
committed
87d6389
View commit details
Copy full SHA for 87d6389
View code at this point
Browse repository at this point
Adds type: "validation" to instance.save() validation errors
dresende
committed
8247ce8
View commit details
Copy full SHA for 8247ce8
View code at this point
Browse repository at this point
Changes setting name from instance.breakSaveOnErrors to instance. returnAllErrors (#96)
dresende
committed
d8fff8c
View commit details
Copy full SHA for d8fff8c
View code at this point
Browse repository at this point
Commits on Apr 7, 2013
Changes error variable names to avoid confusion
dresende
committed
2233fa8
View commit details
Copy full SHA for 2233fa8
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.