|
|
@ -2635,9 +2635,16 @@ class BaseModelSqlv2 { |
|
|
|
).getModel(this.context); |
|
|
|
).getModel(this.context); |
|
|
|
|
|
|
|
|
|
|
|
const childView = await relColOptions.getChildView(this.context); |
|
|
|
const childView = await relColOptions.getChildView(this.context); |
|
|
|
|
|
|
|
const parentBaseModel = await Model.getBaseModelSQL({ |
|
|
|
const childTn = this.getTnPath(childTable); |
|
|
|
dbDriver: this.dbDriver, |
|
|
|
const parentTn = this.getTnPath(parentTable); |
|
|
|
model: parentTable, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
const childBaseModel = await Model.getBaseModelSQL({ |
|
|
|
|
|
|
|
dbDriver: this.dbDriver, |
|
|
|
|
|
|
|
model: childTable, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
const childTn = childBaseModel.getTnPath(childTable); |
|
|
|
|
|
|
|
const parentTn = parentBaseModel.getTnPath(parentTable); |
|
|
|
|
|
|
|
|
|
|
|
const rtn = parentTn; |
|
|
|
const rtn = parentTn; |
|
|
|
const tn = childTn; |
|
|
|
const tn = childTn; |
|
|
|