protected function processReferencesChanged()
    {
        $cache = $this->_cache;
        $attrs = $this->getAttrs();
        foreach ($cache as $key => $item) {
            if(!isset($attrs[$key])) continue;
            $attr = $attrs[$key];
            if ($attr['type'] == self::DATA_TYPE_REFERENCES) {
                if ($item instanceof Collection && (!isset($this->cleanData[$key]) || $this->cleanData[$key] !== $item->makeRef())) {
                    $this->__setter($key, $item);
                }
            }
        }
    }
protected function processReferencesChanged()
    {
        $cache = $this->_cache;
        $attrs = $this->getAttrs();
        foreach ($cache as $key => $item) {
            if(!isset($attrs[$key])) continue;
            $attr = $attrs[$key];
            if ($attr['type'] == self::DATA_TYPE_REFERENCES) {
                if ($item instanceof Collection && (!isset($this->cleanData[$key]) || $this->cleanData[$key] !== $item->makeRef())) {
                    $this->__setter($key, $item);
                }
            }
        }
    }
protected function processReferencesChanged ( ) { $ cache = $ this -> _cache ; $ attrs = $ this -> getAttrs ( ) ; foreach ( $ cache as $ key => $ item ) { if ( ! isset ( $ attrs [ $ key ] ) ) continue ; $ attr = $ attrs [ $ key ] ; if ( $ attr [ 'type' ] == self :: DATA_TYPE_REFERENCES ) { if ( $ item instanceof Collection && ( ! isset ( $ this -> cleanData [ $ key ] ) || $ this -> cleanData [ $ key ] !== $ item -> makeRef ( ) ) ) { $ this -> __setter ( $ key , $ item ) ; } } } }
Update the 'references' attribute for model's instance when that 'references' data  has changed.

@return null
Update the references attribute for model s instance when that references data has changed .