Skip to content

Commit

Permalink
Register DoctrineAnnotations on call to OrmTestCase::createAnnotation…
Browse files Browse the repository at this point in the history
…Driver()
  • Loading branch information
Vitali committed Nov 20, 2011
1 parent bda593a commit 507c8f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Doctrine/Tests/OrmTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ protected function createAnnotationDriver($paths = array(), $alias = null)
$reader->setDefaultAnnotationNamespace('Doctrine\ORM\Mapping\\');
}
}
\Doctrine\Common\Annotations\AnnotationRegistry::registerFile(
__DIR__ . "/../../../lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php");
return new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($reader, (array)$paths);
}

Expand Down

0 comments on commit 507c8f4

Please sign in to comment.