Bryan Clark
342bc2f782
prevent upsert overwriting default values with applyDefaultValues option
...
Creates a new applyDefaultValues option on the Model constructor
defaulting to true, the current behaviour.
Updates the dao module to pass `{ applyDefaultValues: false }` to the
Model constructor during the updateOrCreate method when we assume an
update is happening.
2015-07-14 09:08:10 -07:00
Bryan Clark
1066313f3f
use fromDb to deserialize data after save in Memory connector
...
Changes the after `save` callback in the memory connector to use the
`fromDb` method to deserialize the data passed back to upsert and
updateAttributes methods.
2015-07-14 09:08:09 -07:00
Raymond Feng
cf1dee2d64
Merge pull request #664 from fabien/fix/validate-uniqueness
...
Correctly handle validatesUniquenessOf(idName)
2015-07-13 09:45:59 -07:00
Fabien Franzen
6ce47f71b4
Correctly handle validatesUniquenessOf(idName)
2015-07-13 12:56:49 +02:00
Raymond Feng
64b6aef924
2.33.1
...
* Fix object merge (Raymond Feng)
2015-07-10 14:15:33 -07:00
Raymond Feng
a0e9c5edf2
Merge pull request #661 from strongloop/feature/fix-object-merge
...
Fix object merge
2015-07-10 14:15:01 -07:00
Raymond Feng
5dc4042300
Fix object merge
2015-07-10 13:54:29 -07:00
Raymond Feng
9d653c1a45
2.33.0
...
* Make sure base property definitions are cloned (Raymond Feng)
2015-07-10 10:40:29 -07:00
Raymond Feng
c95e1195df
Merge pull request #660 from strongloop/feature/clone-base-property-def
...
Make sure base property definitions are cloned
2015-07-10 10:39:46 -07:00
Raymond Feng
6eb18cb2f6
Make sure base property definitions are cloned
...
Sub models sometimes need to customize the properties from the base model.
This change allows each sub model has its own copy of the base property
definition to avoid potential conflicts across multiple sub models of the
same base.
2015-07-10 10:03:51 -07:00
Raymond Feng
f3b2a97c84
2.32.0
...
* Fix the regression for date conversion (Raymond Feng)
* Don't cache static scope method results #575 (Fabien Franzen)
2015-07-03 09:29:58 -07:00
Raymond Feng
eb20eebe95
Fix the regression for date conversion
2015-07-03 09:29:26 -07:00
Miroslav Bajtoš
014e91ea0c
Merge pull request #576 from fabien/fix/scope-caching
...
Don't cache static scope method results
2015-07-03 10:49:41 +02:00
Fabien Franzen
5290559a42
Don't cache static scope method results #575
2015-07-03 10:35:26 +02:00
Raymond Feng
88229fb5cf
2.31.1
...
* Fix the regexp value for like/nlike (Raymond Feng)
2015-07-02 23:22:56 -07:00
Raymond Feng
4206088fbc
Fix the regexp value for like/nlike
2015-07-02 23:22:36 -07:00
Raymond Feng
62a429b2a6
2.31.0
...
* Assert the existence of instance (Raymond Feng)
* Make sure operator/options are honored (Raymond Feng)
* Fix coercion from ObjectID to String (Raymond Feng)
* Fix #623 - use actual id order (Fabien Franzen)
* test: fix persistence-hooks failures in MySQL (Miroslav Bajtoš)
* Includes with transaction support (Rus1)
* Fix updateOrCreate transaction propagation (Rus1)
* Fix promise chaining in case of error (Rus1)
* Promisify 'autoupdate' (Pradnya Baviskar)
* Add new hook 'loaded' (Pradnya Baviskar)
2015-07-02 14:57:11 -07:00
Raymond Feng
bcd477358f
Assert the existence of instance
2015-07-02 14:56:46 -07:00
Raymond Feng
542afefb1d
Make sure operator/options are honored
2015-07-02 11:27:33 -07:00
Raymond Feng
50ac143cea
Merge pull request #652 from strongloop/feature/fix-objectid-coercion
...
Fix coercion from ObjectID to String
2015-07-02 10:21:03 -07:00
Raymond Feng
506abf134e
Merge pull request #642 from rus0000/rus0000-patch-1-fix-updateOrCreate-transaction
...
Fix updateOrCreate transaction propagation
2015-07-02 10:17:12 -07:00
Raymond Feng
e72a3cac2f
Merge pull request #643 from rus0000/includes-with-transaction-support
...
Includes with transaction support
2015-07-02 10:13:49 -07:00
Raymond Feng
eb6fa410fe
Fix coercion from ObjectID to String
2015-07-01 14:58:14 -07:00
Fabien Franzen
72897c9f1a
Merge pull request #648 from fabien/fix/references-many-include
...
Fix #623 - use actual array order for referencesMany include handling.
2015-07-01 14:02:16 +02:00
Fabien Franzen
ef2555ce4e
Fix #623 - use actual id order
2015-06-30 20:48:09 +02:00
Miroslav Bajtoš
ec81f20178
Merge pull request #645 from strongloop/fix/persistence-hooks-tests
...
test: fix persistence-hooks failures in MySQL
2015-06-24 18:42:32 +02:00
Miroslav Bajtoš
e55469693d
test: fix persistence-hooks failures in MySQL
2015-06-24 18:31:30 +02:00
Miroslav Bajtoš
293240d752
Merge pull request #599 from PradnyaBaviskar/issue-441
...
Add new hook 'loaded'
2015-06-24 16:35:50 +02:00
Rus1
13b9e47e87
Includes with transaction support
2015-06-24 02:08:07 +03:00
Raymond Feng
103b21a717
Merge pull request #641 from rus0000/rus0000-patch-1-fix-promise
...
Fix promise chaining in case of error
2015-06-23 14:33:07 -07:00
Rus1
17cac79b09
Fix updateOrCreate transaction propagation
2015-06-23 19:14:36 +03:00
Rus1
ca8012ba0a
Fix promise chaining in case of error
2015-06-23 19:08:46 +03:00
Miroslav Bajtoš
d495a26a76
Merge pull request #638 from PradnyaBaviskar/issue-418-autoupdate
...
Promisify 'autoupdate'
2015-06-23 15:00:37 +02:00
Pradnya Baviskar
e7430184a9
Promisify 'autoupdate'
2015-06-23 18:02:08 +05:30
Pradnya Baviskar
20cf67d798
Add new hook 'loaded'
2015-06-23 12:04:46 +05:30
Raymond Feng
019705d32f
2.30.1
...
* Ping async to 1.0.0 to work around context propagation (Raymond Feng)
* Fix the test case (Raymond Feng)
2015-06-16 13:43:28 -07:00
Raymond Feng
8302b2480d
Ping async to 1.0.0 to work around context propagation
2015-06-16 13:43:06 -07:00
Raymond Feng
97f905ff1f
Fix the test case
2015-06-16 13:35:35 -07:00
Raymond Feng
62f3f3af0d
2.30.0
...
* Promisify 'automigrate' (Pradnya Baviskar)
* check object exists before setting __cachedRelations (ningsuhen)
* Fix the test case as updateAll takes `where` directly (Raymond Feng)
* Fix for issues #622 & #623 (ningsuhen)
* Add new hook 'persist' (Pradnya Baviskar)
* Create a script to describe operation hooks (Miroslav Bajtoš)
* Allow 0 as the FK (Raymond Feng)
* fix typo (Clark Wang)
* Dedupe ids args of inq for include (Raymond Feng)
2015-06-16 09:00:08 -07:00
Raymond Feng
ef50be563f
Merge pull request #618 from strongloop/feature/fix-lb-967
...
Allow 0 as the FK
2015-06-16 08:55:54 -07:00
Raymond Feng
bbe9cb350c
Merge pull request #626 from walkonsocial/include-issues
...
Fix for issues #622 & #623
2015-06-16 08:55:29 -07:00
Miroslav Bajtoš
ecb8968166
Merge pull request #630 from PradnyaBaviskar/issue-418
...
Promisify 'automigrate'
2015-06-16 10:46:07 +03:00
Pradnya Baviskar
f4f13a6626
Promisify 'automigrate'
2015-06-16 12:58:21 +05:30
ningsuhen
0d7dcdd043
check object exists before setting __cachedRelations
2015-06-16 11:10:00 +05:30
Raymond Feng
b0f1aae533
Fix the test case as updateAll takes `where` directly
2015-06-15 15:17:47 -07:00
ningsuhen
052e22ab43
Fix for issues #622 & #623
...
polymorphic hasOne needs separate handling and hasMany->referencesMany has a unique case which is fixed for MongoDB as suggested by @fabien.
2015-06-12 01:55:25 +05:30
Miroslav Bajtoš
ec597ef207
Merge pull request #586 from PradnyaBaviskar/issue-559
...
Add new hook `persist`
2015-06-11 18:44:12 +03:00
Miroslav Bajtoš
2dddc78b08
Merge pull request #621 from strongloop/feature/operation-hooks-overview
...
Create a script to describe operation hooks
2015-06-11 09:24:05 +03:00
Pradnya Baviskar
3b0e77cb0a
Add new hook 'persist'
2015-06-10 16:19:13 +05:30
Miroslav Bajtoš
4be81bfc1d
Create a script to describe operation hooks
2015-06-10 11:54:54 +02:00