public function findByEncryptedId($id, $field = 'id') 
	{
	    $hashids = $this->getServiceLocator()->get('neobazaar.service.hashid');
	    $id = $hashids->decrypt($id);
	    $id = is_array($id) ? reset($id) : $id;
	    
        $options = array(); 
        $qb = $this->_em->createQueryBuilder();
        $qb->select(array('a'));
        $qb->from($this->getEntityName(), 'a');
        $qb->where($qb->expr()->eq('a.' . $field, ':value'));
        $qb->setParameter('value', $id);
        $result = $qb->getQuery()->getResult();
        
        return reset($result);
	}