protected function getRepository()
    {
        if ($this->repository === null) {
            $this->repository = $this->container->get('models')->getRepository(Customer::class);
        }
        return $this->repository;
    }
protected function getRepository()
    {
        if ($this->repository === null) {
            $this->repository = $this->container->get('models')->getRepository(Customer::class);
        }
        return $this->repository;
    }
protected function getRepository ( ) { if ( $ this -> repository === null ) { $ this -> repository = $ this -> container -> get ( 'models' ) -> getRepository ( Customer :: class ) ; } return $ this -> repository ; }
Helper function to get access on the static declared repository

@return \Shopware\Models\Customer\Repository
@throws \Exception
Helper function to get access on the static declared repository