public function getUserEntityRepository() 
    {
    	if(isset($this->er['User'])) {
    		return $this->er['User'];
    	}
    	$entityRepository = $this->getEntityManager()->getRepository('Neobazaar\Entity\User');
    	$entityRepository->setServiceLocator($this->getServiceManager());
    	$this->er['User'] = $entityRepository;
    	
    	return $this->er['User'];
    }
public function getUserEntityRepository() 
    {
    	if(isset($this->er['User'])) {
    		return $this->er['User'];
    	}
    	$entityRepository = $this->getEntityManager()->getRepository('Neobazaar\Entity\User');
    	$entityRepository->setServiceLocator($this->getServiceManager());
    	$this->er['User'] = $entityRepository;
    	
    	return $this->er['User'];
    }
public function getUserEntityRepository ( ) { if ( isset ( $ this -> er [ 'User' ] ) ) { return $ this -> er [ 'User' ] ; } $ entityRepository = $ this -> getEntityManager ( ) -> getRepository ( 'Neobazaar\Entity\User' ) ; $ entityRepository -> setServiceLocator ( $ this -> getServiceManager ( ) ) ; $ this -> er [ 'User' ] = $ entityRepository ; return $ this -> er [ 'User' ] ; }
Get Neobazaar\Entity\USer entity repository
Get Neobazaar \ Entity \ USer entity repository