Prevent referencing self or descendants
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #2897121. -->
Reported by: [larowlan](https://www.drupal.org/user/395439)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>If you add a 'parent' field but then reference yourself or a descendant, it causes major issues.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Prevent referencing self or descendant</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Review</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue