mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Name spaces not supported when creating a Schema instance from a given set of metadata classes #6411
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @abdel-geniusespro on GitHub (Feb 24, 2020).
Bug Report
Summary
Current behavior
Name spaces not supported during schema creation.
How to reproduce
@Table(schema="mySchema", name="myTable")doctrine:schema:update --forcethe schema mySchema doesn't existsdoctrine:schema:update --dump-sql, you'll see that an SQL instruction is missingcreate schema mySchema;Expected behavior
Support name spaces during schema creation.
@beberlei commented on GitHub (Feb 25, 2020):
That would be a bigger change in DBAL schema abstraction. Similar to MySQL where you need to create the database, you need to create all schema you want to use outside of Doctrine DBAL/ORM schema usage.
It is unlikely that we are going to be changing this as the complexity is too large for the gain.
@beberlei commented on GitHub (Feb 25, 2020):
@abdel-geniusespro ok, i didn't see that we do have namespace support in DBAL now, when i last worked with the code it didn't exist. So maybe we can add it in SchemaTool.
@abdel-geniusespro commented on GitHub (Feb 28, 2020):
Hello @beberlei , thanks for your reply, I solved the problem locally like this https://github.com/doctrine/orm/pull/8046