Client config for Doctrine
<?php
use Doctrine\ORM\Tools\Console\ConsoleRunner;
use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;
$paths = ['/home/andy/development/metagrated/poc/restengine/app/Lib/Domain/Mappings'];
require_once __DIR__.'/../../../../bootstrap/autoload.php';
$paths = [ __DIR__ ];
$dbParams = array(
'driver' => 'pdo_pgsql',
'user' => 'metagrated',
'password' => 'metagrated',
'dbname' => 'metagrated',
'host' => 'localhost',
'prefix' => '',
);
$config = Setup::createYamlMetadataConfiguration($paths, true);
$entityManager = EntityManager::create($dbParams, $config);
return ConsoleRunner::createHelperSet($entityManager);
https://www.rescuetime.com/blocked/url/http://boingboing.net