Skip to content

Commit 13c8648

Browse files
set the new Document position on for annotation mapping (#153)
* set the new Document position on for annotation mapping * revert empty line
1 parent aa1fcdc commit 13c8648

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

resources/config/dist/phpcr_odm.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@
2929

3030
$kernelRootDir = $container->getParameter('kernel.root_dir');
3131
$bundleFQN = $container->getParameter('cmf_testing.bundle_fqn');
32-
$phpcrOdmDocDir = sprintf('%s/../Document', $kernelRootDir);
33-
$phpcrOdmDocPrefix = sprintf('%s\Tests\Resources\Document', $bundleFQN);
32+
if (getenv('KERNEL_CLASS')) {
33+
$phpcrOdmDocDir = sprintf('%s/Document', $kernelRootDir);
34+
$phpcrOdmDocPrefix = sprintf('%s\Tests\Fixtures\App\Document', $bundleFQN);
35+
} else {
36+
$phpcrOdmDocDir = sprintf('%s/../Document', $kernelRootDir);
37+
$phpcrOdmDocPrefix = sprintf('%s\Tests\Resources\Document', $bundleFQN);
38+
}
3439

3540
if (file_exists($phpcrOdmDocDir)) {
3641
$config['odm']['mappings']['test_additional'] = [

0 commit comments

Comments
 (0)