PHILEMON PHILIP KUNJUMON
2018-03-26 15:19:51 UTC
Hi,
I am using Doctrine 2.5 with Slim 3. I got two Entity Managers Master and
Slave. In the Cli-Config.php file when i am creating the helpers and
passing the entity Managers and their connections as below,
$helpers = new Symfony\Component\Console\Helper\HelperSet([
'db' => new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($defaultEntityManager->getConnection()),
'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($defaultEntityManager),
'db_customer' => new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($customerEntityManager->getConnection()),
'em_customer' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($customerEntityManager),
]);
return $helpers;
now in Console when i try the command
php vendor/doctrine/orm/bin/doctrine orm:schema-tool:create
the schema relating to *$defaultEntityManager* EntityManager is only
getting created the schema relating to *$customerEntityManager* Entity
Manager is not created.
Any idea/suggestions which i can try.?
Thanks
I have posted the same question on Stackoverflow
https://stackoverflow.com/q/49455664/782145
I am using Doctrine 2.5 with Slim 3. I got two Entity Managers Master and
Slave. In the Cli-Config.php file when i am creating the helpers and
passing the entity Managers and their connections as below,
$helpers = new Symfony\Component\Console\Helper\HelperSet([
'db' => new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($defaultEntityManager->getConnection()),
'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($defaultEntityManager),
'db_customer' => new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($customerEntityManager->getConnection()),
'em_customer' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($customerEntityManager),
]);
return $helpers;
now in Console when i try the command
php vendor/doctrine/orm/bin/doctrine orm:schema-tool:create
the schema relating to *$defaultEntityManager* EntityManager is only
getting created the schema relating to *$customerEntityManager* Entity
Manager is not created.
Any idea/suggestions which i can try.?
Thanks
I have posted the same question on Stackoverflow
https://stackoverflow.com/q/49455664/782145
--
You received this message because you are subscribed to the Google Groups "doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doctrine-user+***@googlegroups.com.
To post to this group, send email to doctrine-***@googlegroups.com.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doctrine-user+***@googlegroups.com.
To post to this group, send email to doctrine-***@googlegroups.com.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.