Skip to content

Conversation

nikophil
Copy link

@nikophil nikophil commented Oct 3, 2025

Q A
Type bug
BC Break no
Fixed issues #1502

Summary

When a migration command runs, the DependencyFactory is frozen, but never "unfrozen", so it cannot be run several times programmatically, like we would need in Foundry.

I propose to unfreeze at the end of all commands, but I'd be also OK to only do it in doctrine:migration:migrate

@nikophil nikophil changed the title feat: unfreeze dependencies after command fix: unfreeze dependencies after command Oct 3, 2025
@nikophil nikophil force-pushed the feat/unfroze-dependencies-after-command branch from e4ec2f3 to 458c7bf Compare October 3, 2025 16:34
@nikophil nikophil changed the title fix: unfreeze dependencies after command fix: unfreeze DependencyFactory after command Oct 3, 2025
}

/** @throws SchemaDumpRequiresNoMigrations */
public function execute(
Copy link
Author

@nikophil nikophil Oct 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why this method was public

not sure this was made on purpose, but this change might be a small BC break in this case, if someone was using directly DumpSchemaCommand::execute() from outside. Should I handle this?

@nikophil nikophil marked this pull request as ready for review October 4, 2025 04:45
@nikophil nikophil force-pushed the feat/unfroze-dependencies-after-command branch from 458c7bf to dd3e71d Compare October 4, 2025 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant