8000 minor #7263 Fix sample sqlite database path in doctrine config (chalasr) · a-ast/symfony-docs@875c91c · GitHub
[go: up one dir, main page]

Skip to content

Commit 875c91c

Browse files
committed
minor symfony#7263 Fix sample sqlite database path in doctrine config (chalasr)
This PR was merged into the 3.1 branch. Discussion ---------- Fix sample sqlite database path in doctrine config I think sqlite databases should be stored in `var/` as it is storage. About the `%kernel.data_dir%` removed here, I never heard about such a parameter in the core, either I missed it or it's very old. Please tell me if we should first change it on lower branches, replacing it by `%kernel.root_dir%/app/data/data.sqlite`. See also symfony/symfony-standard#1032 on the same topic Commits ------- 9126fdf Fix sample sqlite database path in doctrine config
2 parents d8ba0c7 + 9126fdf commit 875c91c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/configuration/doctrine.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Full Default Configuration
203203
password="secret"
204204
driver="pdo_mysql"
205205
driver-class="MyNamespace\MyDriverImpl"
206-
path="%kernel.data_dir%/data.sqlite"
206+
path="%kernel.root_dir%/../var/data/data.sqlite"
207207
memory="true"
208208
unix-socket="/tmp/mysql.sock"
209209
wrapper-class="MyDoctrineDbalConnectionWrapper"
@@ -431,7 +431,7 @@ The following block shows all possible configuration keys:
431431
password="secret"
432432
driver="pdo_mysql"
433433
driver-class="MyNamespace\MyDriverImpl"
434-
path="%kernel.data_dir%/data.sqlite"
434+
path="%kernel.root_dir%/../var/data/data.sqlite"
435435
memory="true"
436436
unix-socket="/tmp/mysql.sock"
437437
wrapper-class="MyDoctrineDbalConnectionWrapper"

0 commit comments

Comments
 (0)
0