Merge branch 'master' of github.com:doctrine/doctrine2
This commit is contained in:
commit
15c877b8e8
@ -124,11 +124,12 @@ class Configuration extends \Doctrine\DBAL\Configuration
|
|||||||
*/
|
*/
|
||||||
public function newDefaultAnnotationDriver($paths = array())
|
public function newDefaultAnnotationDriver($paths = array())
|
||||||
{
|
{
|
||||||
if (version_compare(\Doctrine\Common\Version::VERSION, '3.0.0-DEV', '>=')) {
|
if (version_compare(\Doctrine\Common\Version::VERSION, '2.2.0-DEV', '>=')) {
|
||||||
// Register the ORM Annotations in the AnnotationRegistry
|
// Register the ORM Annotations in the AnnotationRegistry
|
||||||
AnnotationRegistry::registerFile(__DIR__ . '/Mapping/Driver/DoctrineAnnotations.php');
|
AnnotationRegistry::registerFile(__DIR__ . '/Mapping/Driver/DoctrineAnnotations.php');
|
||||||
|
|
||||||
$reader = new AnnotationReader();
|
$reader = new \Doctrine\Common\Annotations\SimpleAnnotationReader();
|
||||||
|
$reader->addNamespace('Doctrine\ORM\Mapping');
|
||||||
$reader = new \Doctrine\Common\Annotations\CachedReader($reader, new ArrayCache());
|
$reader = new \Doctrine\Common\Annotations\CachedReader($reader, new ArrayCache());
|
||||||
} else if (version_compare(\Doctrine\Common\Version::VERSION, '2.1.0-DEV', '>=')) {
|
} else if (version_compare(\Doctrine\Common\Version::VERSION, '2.1.0-DEV', '>=')) {
|
||||||
// Register the ORM Annotations in the AnnotationRegistry
|
// Register the ORM Annotations in the AnnotationRegistry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user