source/Spiral/ORM/Entities/Nodes/AbstractNode.php
private function trackReference(string $key)
    {
        if (!in_array($key, $this->columns)) {
            throw new NodeException("Unable to create reference, key {$key} does not exist");
        }

        if (!in_array($key, $this->trackReferences)) {
            //We are only tracking unique references
            $this->trackReferences[] = $key;
        }
    }
private function trackReference(string $key)
    {
        if (!in_array($key, $this->columns)) {
            throw new NodeException("Unable to create reference, key {$key} does not exist");
        }

        if (!in_array($key, $this->trackReferences)) {
            //We are only tracking unique references
            $this->trackReferences[] = $key;
        }
    }
private function trackReference ( string $ key ) { if ( ! in_array ( $ key , $ this -> columns ) ) { throw new NodeException ( "Unable to create reference, key {$key} does not exist" ) ; } if ( ! in_array ( $ key , $ this -> trackReferences ) ) { //We are only tracking unique references $ this -> trackReferences [ ] = $ key ; } }
Add key to be tracked

@param string $key

@throws NodeException
Add key to be tracked