Skip to content

Instantly share code, notes, and snippets.

@HDias
Last active August 29, 2015 14:21
Show Gist options
  • Save HDias/f1d63f11e86b30f71c61 to your computer and use it in GitHub Desktop.
Save HDias/f1d63f11e86b30f71c61 to your computer and use it in GitHub Desktop.

Revisions

  1. HDias revised this gist May 20, 2015. 1 changed file with 15 additions and 16 deletions.
    31 changes: 15 additions & 16 deletions doctrine-orm.local.php
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,17 @@

    <?php
    return array(
    'doctrine' => array(
    'connection' => array(
    'orm_default' => array(
    'driverClass' =>'Doctrine\DBAL\Driver\PDOMySql\Driver',
    'params' => array(
    'host' => 'localhost',
    'port' => '3306',
    'user' => 'root',
    'password' => '',
    'dbname' => 'nomeDoBanco',
    )
    )
    )
    )
    );
    'doctrine' => array(
    'connection' => array(
    'orm_default' => array(
    'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
    'params' => array(
    'password' => '',
    'dbname' => 'ecommerce',
    'driverOptions' => array(
    PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'"
    )
    )
    )
    )
    )
    );
  2. HDias created this gist May 20, 2015.
    18 changes: 18 additions & 0 deletions doctrine-orm.local.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@

    <?php
    return array(
    'doctrine' => array(
    'connection' => array(
    'orm_default' => array(
    'driverClass' =>'Doctrine\DBAL\Driver\PDOMySql\Driver',
    'params' => array(
    'host' => 'localhost',
    'port' => '3306',
    'user' => 'root',
    'password' => '',
    'dbname' => 'nomeDoBanco',
    )
    )
    )
    )
    );