@onehat/data 1.19.6 → 1.19.7
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.
package/package.json
CHANGED
|
@@ -1044,14 +1044,10 @@ export default class Repository extends EventEmitter {
|
|
|
1044
1044
|
this.throwError('this.createStandaloneEntity is no longer valid. Repository has been destroyed.');
|
|
1045
1045
|
return;
|
|
1046
1046
|
}
|
|
1047
|
-
if (this.isRemotePhantomMode) {
|
|
1048
|
-
this.throwError('This repository uses isRemotePhantomMode, and therefore cannot create standalone entities.');
|
|
1049
|
-
return;
|
|
1050
|
-
}
|
|
1051
1047
|
|
|
1052
1048
|
const entity = Repository._createEntity(this.schema, data, this, isPersisted, isDelayedSave, this.isRemotePhantomMode);
|
|
1053
1049
|
|
|
1054
|
-
if (entity.isPhantom) {
|
|
1050
|
+
if (entity.isPhantom && !this.isRemotePhantomMode) {
|
|
1055
1051
|
entity.createTempId();
|
|
1056
1052
|
}
|
|
1057
1053
|
|