Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created November 5, 2013 01:13
Show Gist options
  • Save eminetto/7312213 to your computer and use it in GitHub Desktop.
Save eminetto/7312213 to your computer and use it in GitHub Desktop.
cli-config.php
<?php
// cli-config.php
require_once 'bootstrap.php';
$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array(
'db' => new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($entityManager->getConnection()),
'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($entityManager)
));
return $helperSet;
@philemonphilipkunjumon
Copy link

How do we do the same for multiple entity Managers,?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment