You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above example the "database" entity option is not set, so I expect the schema to have a null value for SchemaInterface::DATABASE instead it uses the default value as configured on the database manager (in my example that would be test).
If I compile the schema during my build step which uses a different database name compared to production I end up with the following error, on production.
Cycle\Database\Exception\DBALException: Unable to create Database, no presets for 'build_2024_abfertgg_db' found
I can resolve this by setting the database to null after the schema has been compiled. But I feel like this is not the expected behavior.
Explicitly setting the entity option "database" to null does not change the outcome.
Description
When compiling a schema, the default database value as configured within the database manager will be used inside of the schema instead of null.
Example with annotated entity:
In the above example the "database" entity option is not set, so I expect the schema to have a
null
value forSchemaInterface::DATABASE
instead it uses the default value as configured on the database manager (in my example that would be test).Schema snippit:
If I compile the schema during my build step which uses a different database name compared to production I end up with the following error, on production.
Cycle\Database\Exception\DBALException: Unable to create Database, no presets for 'build_2024_abfertgg_db' found
I can resolve this by setting the database to null after the schema has been compiled. But I feel like this is not the expected behavior.
Explicitly setting the entity option "database" to
null
does not change the outcome.Versions used:
The text was updated successfully, but these errors were encountered: