protected function getRepository()
    {
        if ($this->repository === null) {
            $this->repository = $this->container->get('models')->getRepository(Customer::class);
        }
        return $this->repository;
    }