假设我<div STYLE="display:inline-block;-webkit-column-count:2;-moz-column-count:2;column-count:2;-webkit-column-gap:0;-moz-column-gap:0;column-gap:0;height:100;width:100%;background-color:red;">
<div STYLE="padding:10px;-webkit-column-count: 2 ; -moz-column-count: 2;column-count: 2;overflow:auto;display:inline-block;position:relative;height:auto;width:100%;background-color:#FFFFFF;border: 1px solid #000000;">
<BR>TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT
<BR>TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT
</div>
<div STYLE="padding:10px;-webkit-column-count: 2 ; -moz-column-count: 2;column-count: 2;overflow:auto;display:inline-block;position:relative;height:auto;width:100%;background-color:#FFFFFF;border: 1px solid #000000;">
<BR>TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT
<BR>TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT
<BR>TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT
<BR>TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT
</div>
<div STYLE="padding:10px;-webkit-column-count: 2 ; -moz-column-count: 2;column-count: 2;overflow:auto;display:inline-block;position:relative;height:100px;width:100%;background-color:#FFFFFF;border: 1px solid #000000;">
<BR>TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT
<BR>TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT
<BR>TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT
<BR>TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT
</div>
<div STYLE="padding:10px;-webkit-column-count: 2 ; -moz-column-count: 2;column-count: 2;overflow:auto;display:inline-block;position:relative;height:auto;width:100%;background-color:#FFFFFF;border: 1px solid #000000;">
<BR>TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT
<BR>TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT-TEXT
</div>
与user
拥有referencesMany
关系。在home
:
common/models/user.json
因此,当我将许多
"relations": {
"homes": {
"type": "referencesMany",
"model": "home",
"foreignKey": "homeIds"
}
},
模型与home
模型相关联时,user
的数组会变得更大:
homeIds
但是,假设我删除了ID为“1”的{
"homeIds": ["1", "2", "3"]
}
对象。
如何确保引用此模型的所有其他模型都更新为删除对已删除模型的引用?