A ver pego el cli-config para que veais como lo tengo configurado por ahora, que es basicamente la configuracion con una conexion.
<?php
use Doctrine\ORM\Tools\Console\ConsoleRunner;
use Something\Was\Here\AndIsNot;
use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;
require_once 'bootstrap.php';
$databaseConnectionParameters = array(
'user' => 'bar'
'password' => 'foo'
'driver' => 'pdo_mysql,
'dbname' =>'db',
'host' => 'my_host'
);
// not fully needed but adding to get working in line with default template
//$paths = array(__DIR__ . "/../Model/Entities1", __DIR__ . "/../Model/Entities2", __DIR__ . "/../Model/Entities3");
$paths = array(__DIR__ . "/../Model");
$isDevMode = false;
// setup the entity config
$config = Setup::createAnnotationMetadataConfiguration($paths, false, null, null, false);
// replace with mechanism to retrieve EntityManager in your app
$entityManager = EntityManager::create($databaseConnectionParameters, $config);
// send back the console runner as part of the default setup for running
// on command line
return ConsoleRunner::createHelperSet($entityManager);