on ‎2019 Dec 11 6:11 PM
I would like to delete Country if it doesn't hold at least one region. Do we have any way of handling this?
<relation code="Country2RegionRelation" generate="true" localized="false" autocreate="true"> <sourceElement type="Country" qualifier="country" cardinality="one">
<modifiers read="true" write="true" search="true" optional="false" unique="true"/>
</sourceElement>
<targetElement type="Region" qualifier="regions" cardinality="many">
<modifiers read="true" write="true" search="true" partof="true"/>
</targetElement>
</relation>
Request clarification before answering.
You can do it as follows:
REMOVE Country[batchmode=true];regions[unique=true](isocode)
;null
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.