I have found a solution.
You just need to indicate in your configuration file that the db name is zero.
<?php return array ( 'doctrine' => array ( 'connection' => array ( 'orm_default' => array ( 'driverClass' => 'Doctrine\\DBAL\\Driver\\PDOMySql\\Driver', 'params' => array ( 'host' => 'localhost', 'port' => '3306', 'user' => 'root', 'password' => '', 'dbname' => null, 'charset' => 'UTF8', ), ), 'orm_poems' => array ( 'driverClass' => 'Doctrine\\DBAL\\Driver\\PDOMySql\\Driver', 'params' => array ( 'host' => 'localhost', 'port' => '3306', 'user' => 'root', 'password' => 'mot de passe', 'dbname' => 'poemsV3', 'charset' => 'UTF8', ), ), ), ), );
Have a nice day every = D
Freezer freezer
source share