|
@@ -309,8 +309,8 @@ const mm = db => {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- static get m(){
|
|
|
|
- return new Proxy({}, {
|
|
|
|
|
|
+ static get m(){
|
|
|
|
+ return Savable._m = (Savable._m || (new Proxy({}, {
|
|
get(obj, _class){
|
|
get(obj, _class){
|
|
if (_class in obj){
|
|
if (_class in obj){
|
|
return obj[_class]
|
|
return obj[_class]
|
|
@@ -357,7 +357,7 @@ const mm = db => {
|
|
|
|
|
|
set(obj, propName, value){
|
|
set(obj, propName, value){
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ })))
|
|
}
|
|
}
|
|
|
|
|
|
static get relations(){
|
|
static get relations(){
|
|
@@ -492,7 +492,7 @@ const mm = db => {
|
|
}
|
|
}
|
|
|
|
|
|
static get m() {
|
|
static get m() {
|
|
- return new Proxy({}, {
|
|
|
|
|
|
+ return SlicedSavable._m = (SlicedSavable._m || (new Proxy({}, {
|
|
get(obj, _class){
|
|
get(obj, _class){
|
|
if (_class in obj){
|
|
if (_class in obj){
|
|
return obj[_class]
|
|
return obj[_class]
|
|
@@ -527,7 +527,7 @@ const mm = db => {
|
|
|
|
|
|
set(obj, propName, value){
|
|
set(obj, propName, value){
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ })))
|
|
}
|
|
}
|
|
|
|
|
|
static get defaultPermissions(){
|
|
static get defaultPermissions(){
|