api/propel.php

33 lines
1.1 KiB
PHP
Raw Normal View History

2019-08-15 13:05:13 +00:00
<?php
return [
'propel' => [
'database' => [
'connections' => [
'mysource' => [
'adapter' => 'mysql',
'classname' => 'Propel\Runtime\Connection\DebugPDO',
'dsn' => 'mysql:host=localhost;dbname=mydb',
'user' => 'root',
'password' => '',
'attributes' => []
],
'yoursource' => [
'adapter' => 'mysql',
'classname' => 'Propel\Runtime\Connection\DebugPDO',
'dsn' => 'mysql:host=localhost;dbname=yourdb',
'user' => 'root',
'password' => '',
'attributes' => []
]
]
],
'runtime' => [
'defaultConnection' => 'mysource',
'connections' => ['mysource', 'yoursource']
],
'generator' => [
'defaultConnection' => 'yoursource',
'connections' => ['yoursource']
]
]
];