Skip to content

Instantly share code, notes, and snippets.

@basz
Created July 21, 2012 20:04
Show Gist options
  • Select an option

  • Save basz/3156980 to your computer and use it in GitHub Desktop.

Select an option

Save basz/3156980 to your computer and use it in GitHub Desktop.
<?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' => 'rooty',
'dbname' => 'juffrouwjansen_winkels',
'unix_socket' => '/opt/local/var/run/mysql55/mysqld.sock',
'charset' => 'utf-8'
),
'doctrine_type_mappings' => array(
// 'enum' => 'Application\DBAL\EnumType',
'enumsitedomain' => 'Application\DBAL\EnumSiteDomainType',
),
)
)
)
);
<?php
return array(
'driver' => array(
'jj_annotation_driver' => array(
'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
'cache' => 'array',
'paths' => array(__DIR__ . '/../src')
),
'orm_default' => array(
'drivers' => array(
'Application\Entity\Brand' => 'jj_annotation_driver'
)
)
),
'configuration' => array(
'orm_default' => array(
'types' => array(
// 'enum' => 'Application\DBAL\EnumType',
'enumsitedomain' => 'Application\DBAL\EnumSiteDomainType',
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment