File tree 6 files changed +140
-73
lines changed
6 files changed +140
-73
lines changed Original file line number Diff line number Diff line change 1
1
[submodule "vendor/mongodb-odm "]
2
2
path = vendor/mongodb-odm
3
3
url = git://github.com/doctrine/mongodb-odm.git
4
+ [submodule "vendor/mongodb "]
5
+ path = vendor/mongodb
6
+ url = git://github.com/doctrine/mongodb.git
Original file line number Diff line number Diff line change @@ -52,22 +52,18 @@ public function modulesLoaded($e)
52
52
} else {
53
53
// Trying to load DoctrineAnnotations.php without knowing its location
54
54
$ annotationReflection = new \ReflectionClass ('Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver ' );
55
- $ libfile = dirname ($ annotationReflection ->getFileName ()) . '/DoctrineAnnotations.php ' ;
55
+ $ libfile = dirname ($ annotationReflection ->getFileName ()) . '/../Annotations/ DoctrineAnnotations.php ' ;
56
56
}
57
57
58
58
if (!$ libfile ) {
59
- throw new RuntimeException (
60
- 'Failed to load annotation mappings - check the "annotation_file" setting '
61
- );
59
+ throw new RuntimeException ('Failed to load annotation mappings - check the "annotation_file" setting ' );
62
60
}
63
61
64
62
AnnotationRegistry::registerFile ($ libfile );
65
63
}
66
64
67
- if (!class_exists ('Doctrine\ODM\MongoDB\Mapping\Document ' , true )) {
68
- throw new \Exception ('
69
- Doctrine could not be autoloaded - ensure it is in the correct path.
70
- ' );
65
+ if (!class_exists ('Doctrine\ODM\MongoDB\Mapping\Annotations\Document ' , true )) {
66
+ throw new \Exception ('Doctrine could not be autoloaded - ensure it is in the correct path. ' );
71
67
}
72
68
}
73
69
You can’t perform that action at this time.
0 commit comments