1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Merge pull request #102 from Dinduks/add_missing_section_in_configuration

Add a missing section in the Configuration manual
This commit is contained in:
Guilherme Blanco 2012-06-18 09:05:29 -07:00
commit b292adceb0

View File

@ -120,6 +120,13 @@ setup methods:
$paths = array("/path/to/entities-or-mapping-files");
$isDevMode = false;
$dbParams = array(
'driver' => 'pdo_mysql',
'user' => 'root',
'password' => '',
'dbname' => 'foo',
);
$config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode);
$em = EntityManager::create($dbParams, $config);