public function refreshDocumentForProxy($className, Proxy $document)
    {
        $node = $this->session->getNode($this->determineDocumentId($document));

        $hints = ['refresh' => true, 'fallback' => true];

        $oid = spl_object_hash($document);
        if (isset($this->documentLocales[$oid]['current'])) {
            $hints['locale'] = $this->documentLocales[$oid]['current'];
        }

        $this->getOrCreateDocument($className, $node, $hints);
    }
public function refreshDocumentForProxy($className, Proxy $document)
    {
        $node = $this->session->getNode($this->determineDocumentId($document));

        $hints = ['refresh' => true, 'fallback' => true];

        $oid = spl_object_hash($document);
        if (isset($this->documentLocales[$oid]['current'])) {
            $hints['locale'] = $this->documentLocales[$oid]['current'];
        }

        $this->getOrCreateDocument($className, $node, $hints);
    }
public function refreshDocumentForProxy ( $ className , Proxy $ document ) { $ node = $ this -> session -> getNode ( $ this -> determineDocumentId ( $ document ) ) ; $ hints = [ 'refresh' => true , 'fallback' => true ] ; $ oid = spl_object_hash ( $ document ) ; if ( isset ( $ this -> documentLocales [ $ oid ] [ 'current' ] ) ) { $ hints [ 'locale' ] = $ this -> documentLocales [ $ oid ] [ 'current' ] ; } $ this -> getOrCreateDocument ( $ className , $ node , $ hints ) ; }
Populate the proxy with actual data.

@param string $className
@param Proxy  $document
Populate the proxy with actual data .