Nastoyka work console Doctrine, why do I receive an error associated with the driver?

Written in a single file .
Question: Why do I receive an error despite the fact that specified the name of the driver ?

require_once '../../../vendor/autoload.php';

$con_config = require_once './con-config.php';

use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Tools\Console\ConsoleRunner;

$isDevMode = true;
$path = array("../../models");

$config = Setup::createAnnotationMetadataConfiguration($path, $isDevMode);

$conn = array(

$entityManager = EntityManager::create($conn, $config);

return ConsoleRunner::createHelperSet($entityManager);

PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: 
The options 'driver' or 'driverClass' are mandatory if no PDO instance is given to DriverManager::getConnection(). in C:\xampp\htdocs\CouponSystem\vendor\doctrine\dbal\lib\Doctrine\DBAL\DBALException.php:114
Stack trace:

Documentation :
March 19th 20 at 08:32
0 answer

Find more questions by tags Doctrine ORM