masterrecord 0.2.30 → 0.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
// version 0.0.
|
|
2
|
+
// version 0.0.16
|
|
3
3
|
var entityTrackerModel = require('masterrecord/Entity/entityTrackerModel');
|
|
4
4
|
var tools = require('masterrecord/Tools');
|
|
5
5
|
var queryScript = require('masterrecord/QueryLanguage/queryScript');
|
|
@@ -249,18 +249,6 @@ class queryMethods{
|
|
|
249
249
|
entityValue.__state = "delete";
|
|
250
250
|
entityValue.__entity = this.__entity;
|
|
251
251
|
entityValue.__context = this.__context;
|
|
252
|
-
|
|
253
|
-
// If the entity has an __ID, try to find and update it in tracked entities
|
|
254
|
-
if(entityValue.__ID){
|
|
255
|
-
var tracked = this.__context.__findTracked(entityValue.__ID);
|
|
256
|
-
if(tracked){
|
|
257
|
-
// Update the tracked entity's state
|
|
258
|
-
tracked.__state = "delete";
|
|
259
|
-
return;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
// If not already tracked, track it now
|
|
264
252
|
this.__context.__track(entityValue);
|
|
265
253
|
}
|
|
266
254
|
|
|
@@ -270,18 +258,6 @@ class queryMethods{
|
|
|
270
258
|
entityValue.__state = "delete";
|
|
271
259
|
entityValue.__entity = this.__entity;
|
|
272
260
|
entityValue.__context = this.__context;
|
|
273
|
-
|
|
274
|
-
// If the entity has an __ID, try to find and update it in tracked entities
|
|
275
|
-
if(entityValue.__ID){
|
|
276
|
-
var tracked = this.__context.__findTracked(entityValue.__ID);
|
|
277
|
-
if(tracked){
|
|
278
|
-
// Update the tracked entity's state
|
|
279
|
-
tracked.__state = "delete";
|
|
280
|
-
continue;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
// If not already tracked, track it now
|
|
285
261
|
this.__context.__track(entityValue);
|
|
286
262
|
}
|
|
287
263
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "masterrecord",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.31",
|
|
4
4
|
"description": "An Object-relational mapping for the Master framework. Master Record connects classes to relational database tables to establish a database with almost zero-configuration ",
|
|
5
5
|
"main": "MasterRecord.js",
|
|
6
6
|
"bin": {
|