blob: aa72b6b8ae8d6b11c799f31f3decc240d4697c3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
$serviceContainer = \Propel\Runtime\Propel::getServiceContainer();
$serviceContainer->checkVersion('2.0.0-dev');
$serviceContainer->setAdapterClass('default', 'mysql');
$manager = new \Propel\Runtime\Connection\ConnectionManagerSingle();
$manager->setConfiguration(array (
'classname' => 'Propel\\Runtime\\Connection\\ConnectionWrapper',
'dsn' => 'mysql:host=localhost;dbname=catalog',
'user' => 'root',
'password' => '',
'options' =>
array (
'ATTR_PERSISTENT' => false,
),
'attributes' =>
array (
'ATTR_EMULATE_PREPARES' => false,
),
'settings' =>
array (
'charset' => 'utf8',
'queries' =>
array (
),
),
));
$manager->setName('default');
$serviceContainer->setConnectionManager('default', $manager);
$serviceContainer->setDefaultDatasource('default');
|