doctrine / doctrine/DoctrineMigrationsBundle
Doctrine migrations generates empty Migration file with no scripts
- Dominant language
- PHP
- Stars
- 4.3k
- Forks
- 218
- Avg merge
- 11h 56m
- Merged PRs (30d)
- 5
Description
I updated Doctrine/ORM to the latest 2..10.x(which upgraded Doctrine/Dbal to 3.x), and replace the Entity id generator strategy string based `UUID` with `Uuid` (`symfony/uid`), the `doctrine:schema:create` and `fixtures:load` are working well, but when I tried to generate the db schema into Migration files, it does not work.
The latest codes is here: https://github.com/hantsy/symfony5-sample/tree/master/rest-sample
The last version using dbal 2.13 works well, https://github.com/hantsy/symfony5-sample/tree/287e322d7332af767e483139bd1c64f86b0f1219
Contributor guide
Research direction
Reproduce the report with the current rest-sample branch linked in the issue, then compare it with commit 287e322d7332af767e483139bd1c64f86b0f1219. Run doctrine:schema:create, fixtures:load, and the migration-generation command against the Doctrine DBAL 3 setup; done means the generated Migration file contains the expected schema scripts rather than being empty.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, symfony
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100