diff --git a/book/doctrine.rst b/book/doctrine.rst index afaee227298..727c55ca277 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -111,6 +111,44 @@ for you: [mysqld] collation-server = utf8_general_ci character-set-server = utf8 + +.. note:: + + If you want to use SQLite as your database, you need to set the path + where your database file should be stored: + + .. configuration-block:: + + .. code-block:: yaml + + # app/config/config.yml + doctrine: + dbal: + driver: pdo_sqlite + path: "%kernel.root_dir%/sqlite.db" + charset: UTF8 + + .. code-block:: xml + + + + + + + .. code-block:: php + + // app/config/config.php + $container->loadFromExtension('doctrine', array( + 'dbal' => array( + 'driver' => 'pdo_sqlite', + 'path' => '%kernel.root_dir%/sqlite.db', + 'charset' => 'UTF-8', + ), + )); Creating an Entity Class ~~~~~~~~~~~~~~~~~~~~~~~~