public function getOrCreateProxyFromNode(NodeInterface $node, $locale = null)
    {
        $targetId = $node->getPath();
        $className = $this->documentClassMapper->getClassName($this->dm, $node);

        return $this->getOrCreateProxy($targetId, $className, $locale);
    }
public function getOrCreateProxyFromNode(NodeInterface $node, $locale = null)
    {
        $targetId = $node->getPath();
        $className = $this->documentClassMapper->getClassName($this->dm, $node);

        return $this->getOrCreateProxy($targetId, $className, $locale);
    }
public function getOrCreateProxyFromNode ( NodeInterface $ node , $ locale = null ) { $ targetId = $ node -> getPath ( ) ; $ className = $ this -> documentClassMapper -> getClassName ( $ this -> dm , $ node ) ; return $ this -> getOrCreateProxy ( $ targetId , $ className , $ locale ) ; }
Get the existing document or proxy or create a new one for this PHPCR Node.

@param NodeInterface $node
@param string        $locale

@return object
Get the existing document or proxy or create a new one for this PHPCR Node .