protected function getGenerator() { return $this->generator ?: ($this->generator = new OrmProxyGenerator()); }