original_string: public function isPendingForPersist(Document $document)
      {
          return isset($this->persist[get_class($document)][spl_object_hash($document)]);
      }
code: public function isPendingForPersist(Document $document)
      {
          return isset($this->persist[get_class($document)][spl_object_hash($document)]);
      }
code_tokens: public function isPendingForPersist ( Document $ document ) { return isset ( $ this -> persist [ get_class ( $ document ) ] [ spl_object_hash ( $ document ) ] ) ; }
docstring: Returns if a document is pending for persist.
  
  @param \Mandango\Document\Document A document.
  
  @return bool If the document is pending for persist.
  
  @api
docstring_tokens: Returns if a document is pending for persist .