From 3cee83be2bdc8886c43afadd35a3364c221f6ce0 Mon Sep 17 00:00:00 2001 From: Attila Fulop Date: Sun, 11 Nov 2012 21:19:18 +0200 Subject: [PATCH] Swapped order of path/Entities at Simplified YAML Driver According to my experience, the path has to be the key, and Namespace prefix the value in the array. --- en/reference/yaml-mapping.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/reference/yaml-mapping.rst b/en/reference/yaml-mapping.rst index 89745dcb0..9a00d08b3 100644 --- a/en/reference/yaml-mapping.rst +++ b/en/reference/yaml-mapping.rst @@ -57,8 +57,8 @@ Configuration of this client works a little bit different: '/path/to/files1', - 'OtherProject\Entities' => '/path/to/files2' + '/path/to/files1' => 'MyProject\Entities', + '/path/to/files2' => 'OtherProject\Entities' ); $driver = new \Doctrine\ORM\Mapping\Driver\SimplifiedYamlDriver($namespaces); $driver->setGlobalBasename('global'); // global.orm.yml