File tree Expand file tree Collapse file tree 1 file changed +25
-3
lines changed Expand file tree Collapse file tree 1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -114,17 +114,39 @@ for you:
114
114
115
115
.. note ::
116
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:
117
+ If you want to use SQLite as your database, you need to set the path
118
+ where your database file should be stored:
119
119
120
120
.. code-block :: yaml
121
121
122
122
# app/config/config.yml
123
123
doctrine :
124
124
dbal :
125
125
driver : pdo_sqlite
126
- path : %kernel.root_dir%/sqlite.db
126
+ path : " %kernel.root_dir%/sqlite.db"
127
127
charset : UTF8
128
+
129
+ .. code-block: xml
130
+
131
+ <!-- app/config/config.xml -->
132
+ <doctrine:config
133
+ driver="pdo_sqlite"
134
+ path="%kernel.root_dir%/sqlite.db"
135
+ charset="UTF-8"
136
+ >
137
+ <!-- ... -->
138
+ </doctrine:config>
139
+
140
+ .. code-block: php
141
+
142
+ // app/config/config.php
143
+ $container->loadFromExtension('doctrine', array(
144
+ 'dbal' => array(
145
+ 'driver' => 'pdo_sqlite',
146
+ 'path' => '%kernel.root_dir%/sqlite.db',
147
+ 'charset' => 'UTF-8',
148
+ ),
149
+ ));
128
150
129
151
Creating an Entity Class
130
152
~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments