From 6e78973eec886212787628db8d10e40d75d85d8d Mon Sep 17 00:00:00 2001 From: Dinduks Date: Mon, 18 Jun 2012 17:42:49 +0200 Subject: [PATCH] Add a missing section in the Configuration manual --- en/reference/configuration.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/en/reference/configuration.rst b/en/reference/configuration.rst index 679997be8..f5b640fe5 100644 --- a/en/reference/configuration.rst +++ b/en/reference/configuration.rst @@ -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);