is there any way to tell doctrine automaticaly create schema tables without using this command :
doctrine:schema:update --force
Using SchemaTool and EntityManager you can do this:
$schemaTool = new \Doctrine\ORM\Tools\SchemaTool($entityManager); $classes = $entityManager->getMetadataFactory()->getAllMetadata(); $schemaTool->createSchema($classes);