Skip to content

Commit 9d03797

Browse files
authored
Update index.rst
Switching the `%kernel.project_dir%` case to the first example as without this the default only works if you run the migrations from the project root, else the paths are wrong and you get an error.
1 parent 3e0f574 commit 9d03797

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Resources/doc/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ application:
4545
doctrine_migrations:
4646
# List of namespace/path pairs to search for migrations, at least one required
4747
migrations_paths:
48-
'App\Migrations': 'src/App'
48+
'App\Migrations': '%kernel.project_dir%/src/App'
4949
'AnotherApp\Migrations': '/path/to/other/migrations'
5050
'SomeBundle\Migrations': '@SomeBundle/Migrations'
51-
'OtherApp\Migrations': '%kernel.project_dir%/src/OtherApp/Migrations'
5251
5352
# List of additional migration classes to be loaded, optional
5453
migrations:

0 commit comments

Comments
 (0)