[doctrine/doctrine-migrations-bundle] Mention service migrations#1480
Open
HypeMC wants to merge 1 commit intosymfony:mainfrom
Open
[doctrine/doctrine-migrations-bundle] Mention service migrations#1480HypeMC wants to merge 1 commit intosymfony:mainfrom
HypeMC wants to merge 1 commit intosymfony:mainfrom
Conversation
Member
HypeMC
commented
Nov 16, 2025
| Q | A |
|---|---|
| License | MIT |
| Doc issue/PR | doctrine/DoctrineMigrationsBundle#629 |
|
Thanks for the PR 😍 How to test these changes in your application
Diff between recipe versionsIn order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes. doctrine/doctrine-migrations-bundle1.2 vs 2.2diff --git a/doctrine/doctrine-migrations-bundle/1.2/config/packages/doctrine_migrations.yaml b/doctrine/doctrine-migrations-bundle/2.2/config/packages/doctrine_migrations.yaml
index 08e7f078..61e66124 100644
--- a/doctrine/doctrine-migrations-bundle/1.2/config/packages/doctrine_migrations.yaml
+++ b/doctrine/doctrine-migrations-bundle/2.2/config/packages/doctrine_migrations.yaml
@@ -1,5 +1,5 @@
doctrine_migrations:
- dir_name: '%kernel.project_dir%/migrations'
- # namespace is arbitrary but should be different from App\Migrations
- # as migrations classes should NOT be autoloaded
- namespace: DoctrineMigrations
+ migrations_paths:
+ # namespace is arbitrary but should be different from App\Migrations
+ # as migrations classes should NOT be autoloaded
+ 'DoctrineMigrations': '%kernel.project_dir%/migrations'2.2 vs 3.1diff --git a/doctrine/doctrine-migrations-bundle/2.2/config/packages/doctrine_migrations.yaml b/doctrine/doctrine-migrations-bundle/3.1/config/packages/doctrine_migrations.yaml
index 61e66124..29231d94 100644
--- a/doctrine/doctrine-migrations-bundle/2.2/config/packages/doctrine_migrations.yaml
+++ b/doctrine/doctrine-migrations-bundle/3.1/config/packages/doctrine_migrations.yaml
@@ -3,3 +3,4 @@ doctrine_migrations:
# namespace is arbitrary but should be different from App\Migrations
# as migrations classes should NOT be autoloaded
'DoctrineMigrations': '%kernel.project_dir%/migrations'
+ enable_profiler: false3.1 vs 3.7diff --git a/doctrine/doctrine-migrations-bundle/3.1/config/packages/doctrine_migrations.yaml b/doctrine/doctrine-migrations-bundle/3.7/config/packages/doctrine_migrations.yaml
index 29231d94..6aaf6627 100644
--- a/doctrine/doctrine-migrations-bundle/3.1/config/packages/doctrine_migrations.yaml
+++ b/doctrine/doctrine-migrations-bundle/3.7/config/packages/doctrine_migrations.yaml
@@ -1,6 +1,9 @@
doctrine_migrations:
+ enable_service_migrations: false
migrations_paths:
- # namespace is arbitrary but should be different from App\Migrations
- # as migrations classes should NOT be autoloaded
+ # The namespace is arbitrary but should be different from App\Migrations
+ # as migrations classes should NOT be autoloaded unless enable_service_migrations is true
'DoctrineMigrations': '%kernel.project_dir%/migrations'
+ # If enable_service_migrations is set to true, migrations MUST be discoverable by the autoloader:
+ # 'App\Migrations': '%kernel.project_dir%/src/Migrations'
enable_profiler: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.