NextDom\Model\Entity\JeeObject::checkTreeConsistency

Check that the object tree does not have a loop.