php bin/console doctrine:schema:create
Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output
Usage
doctrine:schema:create [--em EM] [--dump-sql]
Options
--em Name of the entity manager to operate on
--dump-sql Instead of trying to apply generated SQLs into EntityManager Storage Connection, output them.
Help
Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output.
Hint: If you have a database with tables that should not be managed
by the ORM, you can use a DBAL functionality to filter the tables and sequences down
on a global level:
$config->setSchemaAssetsFilter(function (string|AbstractAsset $assetName): bool {
if ($assetName instanceof AbstractAsset) {
$assetName = $assetName->getName();
}
return !str_starts_with($assetName, 'audit_');
});