private function processEntityManager()
	{
		$builder = $this->getContainerBuilder();

		$configuration = $builder->addDefinition($this->prefix('configuration'))
			->setClass(Configuration::class)
			->addSetup('$service->setMetadataDriverImpl($this->getService(?))', [$this->prefix('metadata.driver')])
			->addSetup('$service->setMetadataCacheImpl(?)', ['@' . $this->prefix('cache.metadata')])
			->addSetup('$service->setQueryCacheImpl(?)', ['@' . $this->prefix('cache.query')])
			->addSetup('$service->setResultCacheImpl(?)', ['@' . $this->prefix('cache.result')])
			->addSetup('$service->setHydrationCacheImpl(?)', ['@' . $this->prefix('cache.hydration')])
			->addSetup('$service->setProxyDir(?)', [$this->config['proxyDir']])
			->addSetup('$service->setProxyNamespace(?)', [$this->config['proxyNamespace']])
			->addSetup('$service->setNamingStrategy(?)', [new \Nette\DI\Statement('Doctrine\ORM\Mapping\UnderscoreNamingStrategy')])
			->addSetup('$service->setQuoteStrategy(?)', [new \Nette\DI\Statement('Doctrine\ORM\Mapping\DefaultQuoteStrategy')])
			->addSetup('$service->setAutoGenerateProxyClasses(?)', [1])
			->addSetup('$service->setEntityListenerResolver(?)', ['@' . $this->prefix('entityListenerResolver')]);

		$entityManager = $builder->addDefinition($this->prefix('entityManager'))
			->setClass(EntityManager::class)
			->setFactory(EntityManager::class . '::create', [
				'@' . $this->prefix('connection'),
				'@' . $this->prefix('configuration'),
				'@' . $this->prefix('eventManager')
			]);
	}