How to setup links integrity?



I have these 2 schemas:

<srcSchema entitySchema="xtk:srcSchema" img="xtk:schema.png" label="Consent Log"

           name="consentLog" namespace="li" xtkschema="xtk:srcSchema">

<element autopk="true" label="Consent Log" name="consentLog">

    <attribute label="Customer Id" length="36" name="customerId" type="string"/>

    <element label="Customer" name="customer" target="li:customer" type="link">

      <join xpath-dst="@customerId" xpath-src="@customerId"/>


    <element label="Consent" name="consent" target="li:consent" type="link"/>



<srcSchema entitySchema="xtk:srcSchema" img="xtk:schema.png" label="Trial Registration Consent"

           name="trialRegistrationConsent" namespace="li" xtkschema="xtk:srcSchema">

  <element autopk="true" label="Trial Registration Consent" name="trialRegistrationConsent">

    <element label="Consent Log" name="consentLog" revCardinality="single" revIntegrity="own"

             target="li:consentLog" type="link"/>

    <element label="Trial Registration" name="trialRegistration" target="li:trialRegistration"




What I want from them is the following: If someone (Workflow, User manually, any JS code) will delete item from li:consentLog I want corresponding item to be deleted from li:trialRegistrationConsent.

This doc ( ) says I need revIntegrity to be "own". But it doesn't work or I don't understand the doc. Help pls.