src/User/Controller/RestController.php
public function getModel() 
	{
		if(null === $this->model) {
			$mainService = $this->getServiceLocator()->get('neobazaar.service.main');
			$this->model = $mainService->getUserEntityRepository();
		}
		return $this->model;
	}
public function getModel() 
	{
		if(null === $this->model) {
			$mainService = $this->getServiceLocator()->get('neobazaar.service.main');
			$this->model = $mainService->getUserEntityRepository();
		}
		return $this->model;
	}
Get the model