protected function getUserHashId(Document $document, $sm) 
	{
		$user = $document->getUser();
		$main = $sm->get('neobazaar.service.main');
		$userRepository = $main->getUserEntityRepository();
		//$this->userIdNoHash = $user->getUserId(); // we do not want to give this info
		
		return $userRepository->getEncryptedId($user->getUserId());
	}
protected function getUserHashId(Document $document, $sm) 
	{
		$user = $document->getUser();
		$main = $sm->get('neobazaar.service.main');
		$userRepository = $main->getUserEntityRepository();
		//$this->userIdNoHash = $user->getUserId(); // we do not want to give this info
		
		return $userRepository->getEncryptedId($user->getUserId());
	}
protected function getUserHashId ( Document $ document , $ sm ) { $ user = $ document -> getUser ( ) ; $ main = $ sm -> get ( 'neobazaar.service.main' ) ; $ userRepository = $ main -> getUserEntityRepository ( ) ; //$this->userIdNoHash = $user->getUserId(); // we do not want to give this info return $ userRepository -> getEncryptedId ( $ user -> getUserId ( ) ) ; }
Return the user hash id for the classified.
It's an sha1 hash. Also fill userIdNoHash

@param Document $document
@return string
Return the user hash id for the classified . It s an sha1 hash . Also fill userIdNoHash