public function refresh($id, $entity)
    {
        $label = $this->classMetadata->getLabel();
        $query = sprintf('MATCH (n:%s) WHERE id(n) = {%s} RETURN n', $label, 'id');
        $result = $this->entityManager->getDatabaseDriver()->run($query, ['id' => $id]);

        if ($result->size() > 0) {
            $node = $result->firstRecord()->nodeValue('n');
            $this->entityManager->getEntityHydrator($this->className)->refresh($node, $entity);
        }
    }