title: Can't create my database using doctrine-module cli command
body: <p>I have a problem with <a href="https://github.com/doctrine/DoctrineModule" rel="nofollow noreferrer">doctrine-module</a> console using zend framework 2 and postgresql</p>
  <pre><code>ricardo@notebook:/var/www/zendskeleton$ bin/doctrine-module orm:schema-tool:create
  PHP Warning:  array_map(): An error occurred while invoking the map callback in /var/www/zendskeleton/vendor/doctrine/doctrine-orm-module/src/DoctrineORMModule/Module.php on line 138
  
  Warning: array_map(): An error occurred while invoking the map callback in /var/www/zendskeleton/vendor/doctrine/doctrine-orm-module/src/DoctrineORMModule/Module.php on line 138
  PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[08006] [7] FATAL:  database &quot;zend&quot; does not exist' in /var/www/zendskeleton/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
  Stack trace:
  #0 /var/www/zendskeleton/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): PDO-&gt;__construct('pgsql:host=loca...', 'postgres', 'morphy09', Array)
  #1 /var/www/zendskeleton/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php(46): Doctrine\DBAL\Driver\PDOConnection-&gt;__construct('pgsql:host=loca...', 'postgres', 'postgres', Array)
  #2 /var/www/zendskeleton/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(360): Doctrine\DBAL\Driver\PDOPgSql\Driver-&gt;connect(Array, 'postgres', 'postgres', Array)
  #3 /var/www/zendskeleton/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): Doctrine\DBAL\Connection-&gt;connect()
  #4 /var/www/zendskeleton/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection-&gt;getDatabasePlatformVersion()
  #5 /var/www/zendskeleton/vendor/doctrine/dbal/li in /var/www/zendskeleton/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 930
  
  Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[08006] [7] FATAL:  database &quot;zend&quot; does not exist' in /var/www/zendskeleton/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
  Stack trace:
  #0 /var/www/zendskeleton/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): PDO-&gt;__construct('pgsql:host=loca...', 'postgres', 'postgres', Array)
  #1 /var/www/zendskeleton/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php(46): Doctrine\DBAL\Driver\PDOConnection-&gt;__construct('pgsql:host=loca...', 'postgres', 'postgres', Array)
  #2 /var/www/zendskeleton/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(360): Doctrine\DBAL\Driver\PDOPgSql\Driver-&gt;connect(Array, 'postgres', 'postgres', Array)
  #3 /var/www/zendskeleton/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): Doctrine\DBAL\Connection-&gt;connect()
  #4 /var/www/zendskeleton/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection-&gt;getDatabasePlatformVersion()
  #5 /var/www/utilcore/vendor/doctrine/dbal/li in /var/www/zendskeleton/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 930
  </code></pre>
  <p>I have a doctrine.local.php config file:</p>
  <pre><code>&lt;?php
  
  return [
      'doctrine' =&gt; [
          'connection' =&gt; [
              'orm_default' =&gt; [
                  'driverClass' =&gt;'Doctrine\DBAL\Driver\PDOPgSql\Driver',
                  'params' =&gt; [
                      'host'     =&gt; 'localhost',
                      'port'     =&gt; '5432',
                      'user'     =&gt; 'postgres',
                      'password' =&gt; 'postgres',
                      'dbname'   =&gt; 'zend',
                  ]
              ]
          ]
      ]
  ];
  </code></pre>
  <p>Basically, I cant create my database using doctrine-module cli command.</p>
  <p>Why i'm getting this error?</p>
  <p>If I create the database using psql all the doctrine-module commands works very well, but the doctrine-module orm:schema-tool:create is there for this?</p>