Browse Source

fixed a bug that prevented cache invalidation

Johannes M. Schmitt 14 years ago
parent
commit
aa02258112
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Metadata/Driver/AnnotationDriver.php

+ 2 - 0
Metadata/Driver/AnnotationDriver.php

@@ -42,6 +42,8 @@ class AnnotationDriver implements DriverInterface
     public function loadMetadataForClass(\ReflectionClass $class)
     {
         $classMetadata = new ClassMetadata($name = $class->getName());
+        $classMetadata->fileResources[] = $class->getFilename();
+
         foreach ($this->reader->getClassAnnotations($class) as $annot) {
             if ($annot instanceof ExclusionPolicy) {
                 $classMetadata->exclusionPolicy = $annot->policy;