Merge pull request #102 from Dinduks/add_missing_section_in_configuration
Add a missing section in the Configuration manual
This commit is contained in:
commit
b292adceb0
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user