Closed vincentchalamon closed 1 week ago
Hi @kbond,
Regarding the failing CI (I'm not familiar with multiple schemas). Do you know what's going on there?
The doctrine:schema:update
command doesn't seem to support multiple schemas. To handle such specific use case, I had to separate migrate
mode from schema
mode fixtures. Push in progress.
This PR is still in WIP till I find a clean solution to test this specific use case.
Hi @vincentchalamon
I'm wondering if a simpler solution would not be to declare two entity managers, affect one entity to this entity manager, and configure the test kernel to not reset this specific EM. WDYT?
Hi @vincentchalamon
I'm wondering if a simpler solution would not be to declare two entity managers, affect one entity to this entity manager, and configure the test kernel to not reset this specific EM. WDYT?
I'm afraid using multiple entity managers won't solve the original issue. The idea is to add non-regression tests to ensure the database is fully and properly removed before running the migrations (cf. https://github.com/zenstruck/foundry/pull/615).
The idea here is to have a custom migration which should fail the tests if not run properly (for instance, if AbstractORMPersistenceStrategy::resetSchema
method is updated).
ok thanks for explanations, I understand better now!
Fixes #618