MySQL warning: Deprecated usage of mixed qualified and unqualified column names. #12116
Replies: 3 comments 2 replies
-
I don't really understand what you're trying to do here. You're merging the tables of two different schemas when the schema manager is asked for all tables in the current database? That API is used a lot by the DBAL and ORM internally and we can't guarantee that your hack won't break in a future bugfix release. |
Beta Was this translation helpful? Give feedback.
-
Yes, I fully understand that this hack may break in a future release — in fact, it already broke a few versions ago. This workaround is only used in the development environment. It allows us to: run The trick essentially makes Doctrine believe that all tables belong to a single schema, while still preserving the
|
Beta Was this translation helpful? Give feedback.
-
During runtime. This change forcing me to to set schema name in the default schema. Default schema can have per client names. By default mysql return current schema based on connection params I was wondering if it’s possible to set the schema name by default, e.g., using an
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Related to PR.
My current setup consists of one database with the
central
schema and additional schemas (one per client). Until now, I was able to define entities in the code using thecentral
schema. The rest did not have a defined schema — each client had a different one — and there is a single code repository.Now, when I run doctrine:schema:validate, I get the following warning:
My config and code:
Beta Was this translation helpful? Give feedback.
All reactions