sathyashrayan

config/autoload/db.local.php

May 2nd, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.01 KB | None | 0 0
  1. 'doctrine' => array(
  2.                 'connection' => array(
  3.                         'orm_default' => array(
  4.                                 'driverClass' =>'Doctrine\DBAL\Driver\PDOMySql\Driver',
  5.                                 'params' => array(
  6.                                         'host'     => 'localhost',
  7.                                         'port'     => '3306',
  8.                                         'user'     => 'root',
  9.                                         'password' => 'A',
  10.                                         'dbname'   => 'test_bogdan',
  11.                                 )
  12.                         ),
  13.                        
  14.                         'orm_alternative'=> array(
  15.                                 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
  16.                                 'params' => array(
  17.                                         'host'     => 'localhost',
  18.                                         'port'     => '3306',
  19.                                         'user'     => 'root',
  20.                                         'password' => 'A',
  21.                                         'dbname'   => 'test_bogdan2',
  22.                                 )
  23.                         ),
  24.                 )
  25.         ),
  26.         'entitymanager' => array(
  27.                 'orm_default' => array(
  28.                         'connection'    => 'orm_default',
  29.                         'configuration' => 'orm_default'
  30.                 ),
  31.                 //This is the alternative config
  32.                 'orm_alternative' => array(
  33.                         'connection'    => 'orm_alternative',
  34.                         'configuration' => 'orm_alternative'
  35.                 )
  36.         ),
Add Comment
Please, Sign In to add comment