1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Flip key value in $namespaces array

Key value should be other way around.
This commit is contained in:
Jeroen van Leeuwen 2015-02-03 14:54:21 +01:00
parent 64ef89ce4c
commit f9cf2b6a95

View File

@ -88,8 +88,8 @@ Configuration of this client works a little bit different:
<?php
$namespaces = array(
'MyProject\Entities' => '/path/to/files1',
'OtherProject\Entities' => '/path/to/files2'
'/path/to/files1' => 'MyProject\Entities',
'/path/to/files2' => 'OtherProject\Entities'
);
$driver = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver($namespaces);
$driver->setGlobalBasename('global'); // global.orm.xml