From a14517dc9d4fa721a1c4d93a5d66187026293c1a Mon Sep 17 00:00:00 2001 From: Ilya Antipenko Date: Sun, 5 Apr 2015 14:12:59 +0300 Subject: [PATCH] Add note about "symfony/yaml" dependency for yml mappings --- docs/en/reference/configuration.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/en/reference/configuration.rst b/docs/en/reference/configuration.rst index 5837f0f95..2d7ff241b 100644 --- a/docs/en/reference/configuration.rst +++ b/docs/en/reference/configuration.rst @@ -79,6 +79,13 @@ Or if you prefer YAML: $config = Setup::createYAMLMetadataConfiguration($paths, $isDevMode); $entityManager = EntityManager::create($dbParams, $config); +.. note:: + If you want to use yml mapping you should add yaml dependency to your `composer.json`: + + :: + + "symfony/yaml": "*" + Inside the ``Setup`` methods several assumptions are made: - If `$isDevMode` is true caching is done in memory with the ``ArrayCache``. Proxy objects are recreated on every request.