Skip to content

Commit 97d6e15

Browse files
committed
Adding a note describing the configuration of SQLite with doctrine
1 parent ee3fd33 commit 97d6e15

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

book/doctrine.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,20 @@ for you:
111111
[mysqld]
112112
collation-server = utf8_general_ci
113113
character-set-server = utf8
114+
115+
.. note::
116+
117+
If you want to use SQLite as your database, you need to set the path where
118+
your database file should be stored:
119+
120+
.. code-block:: yaml
121+
122+
# app/config/config.yml
123+
doctrine:
124+
dbal:
125+
driver: pdo_sqlite
126+
path: %kernel.root_dir%/sqlite.db
127+
charset: UTF8
114128
115129
Creating an Entity Class
116130
~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)