protected function refreshExistingNode(AbstractNestedNode $node)
    {
        if (true === $this->_em->contains($node)) {
            $this->_em->refresh($node);
        } elseif (null === $node = $this->find($node->getUid())) {
            $this->_em->persist($node);
        }

        return $this;
    }
protected function refreshExistingNode(AbstractNestedNode $node)
    {
        if (true === $this->_em->contains($node)) {
            $this->_em->refresh($node);
        } elseif (null === $node = $this->find($node->getUid())) {
            $this->_em->persist($node);
        }

        return $this;
    }
protected function refreshExistingNode ( AbstractNestedNode $ node ) { if ( true === $ this -> _em -> contains ( $ node ) ) { $ this -> _em -> refresh ( $ node ) ; } elseif ( null === $ node = $ this -> find ( $ node -> getUid ( ) ) ) { $ this -> _em -> persist ( $ node ) ; } return $ this ; }
Refresh an existing node.

@param  \BackBee\NestedNode\AbstractNestedNode                     $node
@return \BackBee\NestedNode\Repository\NestedNodeRepository
Refresh an existing node .