1
0
mirror of synced 2025-03-22 07:53:49 +03:00

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.
This commit is contained in:
Attila Fulop 2012-11-11 21:19:18 +02:00
parent 2edccbfbc8
commit 3cee83be2b

View File

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