/**
* @param string $entityManagerName
* @return string
*/
protected function wrapCommand($entityManagerName)
{
if (!$this->isVersionCompatible()) {
throw new \RuntimeException(sprintf('"%s" requires doctrine-orm "%s" or newer', $this->getName(), $this->getMinimalVersion()));
}
DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $entityManagerName);
$this->command->setApplication($this->getApplication());
return $this->command;
}