public function get($idOrUser) 
    {
		// All the services we need
		$main = $this->getServiceLocator()->get('neobazaar.service.main');
		$userRepository = $main->getUserEntityRepository();
		
		if('current' == $idOrUser) {
			return $userRepository->get($idOrUser, $this->getServiceLocator());
		}
		
		$user = $this->getEntity($idOrUser);
		
		if(!$this->checkIfOwnerOrAdmin($user)) {
			throw new \Exception('Non possiedi i permessi per agire su questo documento');
		}
		
		return $userRepository->get($user, $this->getServiceLocator());
    }
public function get($idOrUser) 
    {
		// All the services we need
		$main = $this->getServiceLocator()->get('neobazaar.service.main');
		$userRepository = $main->getUserEntityRepository();
		
		if('current' == $idOrUser) {
			return $userRepository->get($idOrUser, $this->getServiceLocator());
		}
		
		$user = $this->getEntity($idOrUser);
		
		if(!$this->checkIfOwnerOrAdmin($user)) {
			throw new \Exception('Non possiedi i permessi per agire su questo documento');
		}
		
		return $userRepository->get($user, $this->getServiceLocator());
    }
Return a model structure that can be passed to js

@param unknown $idOrUser
@throws \Exception
@return UserModel