original_string: public function refresh()
      {
          if ($this->isNew()) {
              throw new \LogicException('The document is new.');
          }
  
          $this->setDocumentData($this->getRepository()->getCollection()->findOne(array('_id' => $this->getId())), true);
  
          return $this;
      }
code: public function refresh()
      {
          if ($this->isNew()) {
              throw new \LogicException('The document is new.');
          }
  
          $this->setDocumentData($this->getRepository()->getCollection()->findOne(array('_id' => $this->getId())), true);
  
          return $this;
      }
code_tokens: public function refresh ( ) { if ( $ this -> isNew ( ) ) { throw new \ LogicException ( 'The document is new.' ) ; } $ this -> setDocumentData ( $ this -> getRepository ( ) -> getCollection ( ) -> findOne ( array ( '_id' => $ this -> getId ( ) ) ) , true ) ; return $ this ; }
docstring: Refresh the document data from the database.
  
  @return \Mandango\Document\Document The document (fluent interface).
  
  @throws \LogicException
  
  @api
docstring_tokens: Refresh the document data from the database .