فهرست منبع

Merge pull request #363 from lopsided/master

Check avalibility of class on SoftDeleteable Annotation driver
Gediminas Morkevicius 13 سال پیش
والد
کامیت
7ed197cc95
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lib/Gedmo/SoftDeleteable/Mapping/Driver/Annotation.php

+ 1 - 1
lib/Gedmo/SoftDeleteable/Mapping/Driver/Annotation.php

@@ -61,7 +61,7 @@ class Annotation implements AnnotationDriverInterface
     {
         $class = $meta->getReflectionClass();
         // class annotations
-        if ($annot = $this->reader->getClassAnnotation($class, self::SOFT_DELETEABLE)) {
+        if ($class !== null && $annot = $this->reader->getClassAnnotation($class, self::SOFT_DELETEABLE)) {
             $config['softDeleteable'] = true;
 
             Validator::validateField($meta, $annot->fieldName);