public function isPendingForPersist(Document $document)
    {
        return isset($this->persist[get_class($document)][spl_object_hash($document)]);
    }
public function isPendingForPersist(Document $document)
    {
        return isset($this->persist[get_class($document)][spl_object_hash($document)]);
    }
public function isPendingForPersist ( Document $ document ) { return isset ( $ this -> persist [ get_class ( $ document ) ] [ spl_object_hash ( $ document ) ] ) ; }
Returns if a document is pending for persist.

@param \Mandango\Document\Document A document.

@return bool If the document is pending for persist.

@api
Returns if a document is pending for persist .