File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,44 @@ for you:
111
111
[mysqld]
112
112
collation-server = utf8_general_ci
113
113
character-set-server = utf8
114
+
115
+ .. note ::
116
+
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
+
120
+ .. configuration-block ::
121
+
122
+ .. code-block :: yaml
123
+
124
+ # app/config/config.yml
125
+ doctrine :
126
+ dbal :
127
+ driver : pdo_sqlite
128
+ path : " %kernel.root_dir%/sqlite.db"
129
+ charset : UTF8
130
+
131
+ .. code-block :: xml
132
+
133
+ <!-- app/config/config.xml -->
134
+ <doctrine : config
135
+ driver =" pdo_sqlite"
136
+ path =" %kernel.root_dir%/sqlite.db"
137
+ charset =" UTF-8"
138
+ >
139
+ <!-- ... -->
140
+ </doctrine : config >
141
+
142
+ .. code-block :: php
143
+
144
+ // app/config/config.php
145
+ $container->loadFromExtension('doctrine', array(
146
+ 'dbal' => array(
147
+ 'driver' => 'pdo_sqlite',
148
+ 'path' => '%kernel.root_dir%/sqlite.db',
149
+ 'charset' => 'UTF-8',
150
+ ),
151
+ ));
114
152
115
153
Creating an Entity Class
116
154
~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments