title: Call to undefined function in GetEntityManager() in cli-config.php
body: <p>I tried installing doctrine2 orm from composer, it was successfull, I setup my bootstrap.php as shown below</p>
  
  <pre><code>&lt;?php
  define('DS', DIRECTORY_SEPARATOR);
  define('ROOT', dirname(dirname(__FILE__)));
  // bootstrap.php
  require_once "vendor/autoload.php";
  
  use Doctrine\ORM\Tools\Setup;
  use Doctrine\ORM\EntityManager;
  
  $paths = array(ROOT.DS.'library'.DS.'doctrine/entities/');
  $isDevMode = false;
  
  // the connection configuration
  $dbParams = array(
  'driver'   =&gt; 'pdo_mysql',
  'user'     =&gt; 'root',
  'password' =&gt; '',
  'dbname'   =&gt; 'meso',
  );
  
  $config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode);
  $entityManager = EntityManager::create($dbParams, $config);
  
  ?&gt;
  </code></pre>
  
  <p>and here is my cli-config.php</p>
  
  <pre><code>&lt;?php
  use Doctrine\ORM\Tools\Console\ConsoleRunner;
  
  // replace with file to your own project bootstrap
  require_once 'bootstrap.php';
  
  // replace with mechanism to retrieve EntityManager in your app
  $entityManager = GetEntityManager();
  
  return ConsoleRunner::createHelperSet($entityManager);
  
  ?&gt;
  </code></pre>
  
  <p>When I tried creating orm mapping into my entities folder using the command below on cli, it throws this error "Call to undefined function in GetEntityManager() in cli-config.php on line 8"</p>
  
  <pre><code>  &gt;  php vendor/doctrine/orm/bin/doctrine orm:convert-mapping xml ./path/to/entities/
  </code></pre>