protected function getHashId(Document $document, $sm) 
	{
		$main = $sm->get('neobazaar.service.main');
		$documentRepository = $main->getDocumentEntityRepository();
		return $documentRepository->getEncryptedId($document->getDocumentId());
	}
protected function getHashId(Document $document, $sm) 
	{
		$main = $sm->get('neobazaar.service.main');
		$documentRepository = $main->getDocumentEntityRepository();
		return $documentRepository->getEncryptedId($document->getDocumentId());
	}
protected function getHashId ( Document $ document , $ sm ) { $ main = $ sm -> get ( 'neobazaar.service.main' ) ; $ documentRepository = $ main -> getDocumentEntityRepository ( ) ; return $ documentRepository -> getEncryptedId ( $ document -> getDocumentId ( ) ) ; }
Return the classified hash id.
It's an sha1 hash

@param Document $document
@return string
Return the classified hash id . It s an sha1 hash