src/bootstrap.php:
<?php use Doctrine\ORM\Tools\Setup; use Doctrine\ORM\EntityManager; $isDevMode = true; require_once __DIR__ . '/../config/dbconfig.php'; $entityManager = EntityManager::create($dbConfig, $config);
src/cli_config.php:
<?php require_once 'bootstrap.php'; return \Doctrine\ORM\Tools\Console\ConsoleRunner::createHelperSet($entityManager);
config/dbconfig.php:
<?php $dbConfig = [ 'driver' => 'pdo_mysql', 'host' => 'localhost', 'dbname' => '*', 'user' => '*', 'password' => '*', 'charset' => 'utf8mb4', 'port' => 3307, ];
Przy próbie wywołania
Cytat
src>..\vendor\bin\doctrine orm:schema-tool:create
dostaję Cytat
[InvalidArgumentException] Identifier "dispatcher" does not contain an object definition.
Co tu uwaliłem, że to nie działa?
//Edit:
Do zamknięcia - pomogła zmiana sposobu konfiguracji na yaml