Skip to content

Commit

Permalink
[DoctrineBundle] Adding some XML examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jwage authored and fabpot committed Mar 1, 2010
1 parent 85ed6df commit 0472d0f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Symfony/Framework/DoctrineBundle/README
Expand Up @@ -23,6 +23,10 @@ do the following:
user: root
password: ~

Or if you want to use XML instead of YAMl it would like like this:

<doctrine:dbal dbname="symfony_guestbook" user="root" password="" />

Or if you have multiple connections and want to customize the configuration of the
connection further you can use the following:

Expand All @@ -32,7 +36,7 @@ connection further you can use the following:
connections:
default:
driver: PDOSqlite # PDOSqlite, PDOMySql, PDOMsSql, PDOOracle, PDOPgSql, OCI8
dbname: symfony
dbname: symfony_guestbook
user: root
password: null
host: localhost
Expand All @@ -43,6 +47,12 @@ connection further you can use the following:
wrapper_class: ~
options: []

You can also specify multiple connections using the XML format:

<doctrine:dbal default_connection="default">
<doctrine:connection id="default" dbname="symfony_guestbook" user="root" password="" />
</doctrine:dbal>

### Object Relational Mapper

If you want to enable the Doctrine 2 ORM you can do so with the following:
Expand Down

0 comments on commit 0472d0f

Please sign in to comment.