Skip to content

Commit e26c32f

Browse files
author
Iltar van der Berg
committed
Hard values for the driver option
1 parent 09a3381 commit e26c32f

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

book/doctrine.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ information. By convention, this information is usually configured in an
4343
4444
# app/config/parameters.yml
4545
parameters:
46-
database_driver: pdo_mysql
4746
database_host: localhost
4847
database_name: test_project
4948
database_user: root
@@ -64,7 +63,7 @@ information. By convention, this information is usually configured in an
6463
# app/config/config.yml
6564
doctrine:
6665
dbal:
67-
driver: '%database_driver%'
66+
driver: pdo_mysql
6867
host: '%database_host%'
6968
dbname: '%database_name%'
7069
user: '%database_user%'
@@ -84,7 +83,7 @@ information. By convention, this information is usually configured in an
8483
8584
<doctrine:config>
8685
<doctrine:dbal
87-
driver="%database_driver%"
86+
driver="pdo_mysql"
8887
host="%database_host%"
8988
dbname="%database_name%"
9089
user="%database_user%"
@@ -97,7 +96,7 @@ information. By convention, this information is usually configured in an
9796
// app/config/config.php
9897
$configuration->loadFromExtension('doctrine', array(
9998
'dbal' => array(
100-
'driver' => '%database_driver%',
99+
'driver' => 'pdo_mysql',
101100
'host' => '%database_host%',
102101
'dbname' => '%database_name%',
103102
'user' => '%database_user%',

cookbook/doctrine/multiple_entity_managers.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ The following configuration code shows how you can configure two entity managers
2727
default_connection: default
2828
connections:
2929
default:
30-
driver: '%database_driver%'
30+
driver: pdo_mysql
3131
host: '%database_host%'
3232
port: '%database_port%'
3333
dbname: '%database_name%'
3434
user: '%database_user%'
3535
password: '%database_password%'
3636
charset: UTF8
3737
customer:
38-
driver: '%database_driver2%'
38+
driver: pdo_mysql
3939
host: '%database_host2%'
4040
port: '%database_port2%'
4141
dbname: '%database_name2%'
@@ -68,7 +68,7 @@ The following configuration code shows how you can configure two entity managers
6868
<config>
6969
<dbal default-connection="default">
7070
<connection name="default"
71-
driver="%database_driver%"
71+
driver="pdo_mysql"
7272
host="%database_host%"
7373
port="%database_port%"
7474
dbname="%database_name%"
@@ -78,7 +78,7 @@ The following configuration code shows how you can configure two entity managers
7878
/>
7979
8080
<connection name="customer"
81-
driver="%database_driver2%"
81+
driver="pdo_mysql"
8282
host="%database_host2%"
8383
port="%database_port2%"
8484
dbname="%database_name2%"
@@ -108,7 +108,7 @@ The following configuration code shows how you can configure two entity managers
108108
'default_connection' => 'default',
109109
'connections' => array(
110110
'default' => array(
111-
'driver' => '%database_driver%',
111+
'driver' => 'pdo_mysql',
112112
'host' => '%database_host%',
113113
'port' => '%database_port%',
114114
'dbname' => '%database_name%',
@@ -117,7 +117,7 @@ The following configuration code shows how you can configure two entity managers
117117
'charset' => 'UTF8',
118118
),
119119
'customer' => array(
120-
'driver' => '%database_driver2%',
120+
'driver' => 'pdo_mysql',
121121
'host' => '%database_host2%',
122122
'port' => '%database_port2%',
123123
'dbname' => '%database_name2%',

0 commit comments

Comments
 (0)