protected function _getPreloadedNode($data)
    {
        if (!$this->aggregated()) {
            return $this->_mixer->get($data);
        }

        if (!isset($this->_mixer->__ids)) {
            $this->_mixer->__ids = array();
        }

        if (!isset($this->_mixer->__ids[$data])) {
            $nodes = array();
            $ids = $this->getIds($data);
            foreach ($ids as $id) {
                if (isset($this->_loaded_nodes[$id])) {
                    $nodes[] = $this->_loaded_nodes[$id];
                }
            }
            if (count($nodes) < 2) {
                $nodes = array_pop($nodes);
            }
            $this->_mixer->__ids[$data] = $nodes;
        }

        return $this->_mixer->__ids[$data];
    }
protected function _getPreloadedNode($data)
    {
        if (!$this->aggregated()) {
            return $this->_mixer->get($data);
        }

        if (!isset($this->_mixer->__ids)) {
            $this->_mixer->__ids = array();
        }

        if (!isset($this->_mixer->__ids[$data])) {
            $nodes = array();
            $ids = $this->getIds($data);
            foreach ($ids as $id) {
                if (isset($this->_loaded_nodes[$id])) {
                    $nodes[] = $this->_loaded_nodes[$id];
                }
            }
            if (count($nodes) < 2) {
                $nodes = array_pop($nodes);
            }
            $this->_mixer->__ids[$data] = $nodes;
        }

        return $this->_mixer->__ids[$data];
    }
protected function _getPreloadedNode ( $ data ) { if ( ! $ this -> aggregated ( ) ) { return $ this -> _mixer -> get ( $ data ) ; } if ( ! isset ( $ this -> _mixer -> __ids ) ) { $ this -> _mixer -> __ids = array ( ) ; } if ( ! isset ( $ this -> _mixer -> __ids [ $ data ] ) ) { $ nodes = array ( ) ; $ ids = $ this -> getIds ( $ data ) ; foreach ( $ ids as $ id ) { if ( isset ( $ this -> _loaded_nodes [ $ id ] ) ) { $ nodes [ ] = $ this -> _loaded_nodes [ $ id ] ; } } if ( count ( $ nodes ) < 2 ) { $ nodes = array_pop ( $ nodes ) ; } $ this -> _mixer -> __ids [ $ data ] = $ nodes ; } return $ this -> _mixer -> __ids [ $ data ] ; }
Since nodes related to an aggregated set have been preloaded
we just fetch them from the cache list _loaded_nodes.

@TODO we need to this in the _preloadData method after the nodes
have been loaded

@return ComBaseDomainEntityNode
Since nodes related to an aggregated set have been preloaded we just fetch them from the cache list _loaded_nodes .