Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
d32857ac
Commit
d32857ac
authored
Dec 30, 2012
by
Ricard Clau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add charset documentation in doctrine provider
parent
bd523d59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
doc/providers/doctrine.rst
doc/providers/doctrine.rst
+7
-2
No files found.
doc/providers/doctrine.rst
View file @
d32857ac
...
@@ -29,11 +29,14 @@ Parameters
...
@@ -29,11 +29,14 @@ Parameters
* **password**: The password of the database to connect to.
* **password**: The password of the database to connect to.
* **charset**: Only relevant for ``pdo_mysql``, ``pdo_oci`` and ``oci8``,
specifies the charset used when connecting to the database.
* **path**: Only relevant for ``pdo_sqlite``, specifies the path to
* **path**: Only relevant for ``pdo_sqlite``, specifies the path to
the SQLite database.
the SQLite database.
These and additional options are described in detail in the `Doctrine DBAL
These and additional options are described in detail in the `Doctrine DBAL
configuration documentation <http://
www.doctrine-project.org/docs/dbal/2.0/en
/reference/configuration.html>`_.
configuration documentation <http://
docs.doctrine-project.org/projects/doctrine-dbal/en/latest
/reference/configuration.html>`_.
Services
Services
--------
--------
...
@@ -100,6 +103,7 @@ and values are options::
...
@@ -100,6 +103,7 @@ and values are options::
'dbname' => 'my_database',
'dbname' => 'my_database',
'user' => 'my_username',
'user' => 'my_username',
'password' => 'my_password',
'password' => 'my_password',
'charset' => 'utf8',
),
),
'mysql_write' => array(
'mysql_write' => array(
'driver' => 'pdo_mysql',
'driver' => 'pdo_mysql',
...
@@ -107,6 +111,7 @@ and values are options::
...
@@ -107,6 +111,7 @@ and values are options::
'dbname' => 'my_database',
'dbname' => 'my_database',
'user' => 'my_username',
'user' => 'my_username',
'password' => 'my_password',
'password' => 'my_password',
'charset' => 'utf8',
),
),
),
),
));
));
...
@@ -133,4 +138,4 @@ Using multiple connections::
...
@@ -133,4 +138,4 @@ Using multiple connections::
});
});
For more information, consult the `Doctrine DBAL documentation
For more information, consult the `Doctrine DBAL documentation
<http://
www.doctrine-project.org/docs/dbal/2.0/en
/>`_.
<http://
docs.doctrine-project.org/projects/doctrine-dbal/en/latest
/>`_.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment