Explorar o código

[mapping] in order to support virtual mapping, closes #134 and closes #188

gedi %!s(int64=13) %!d(string=hai) anos
pai
achega
43538c3ee3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      lib/Gedmo/Mapping/Driver/Chain.php

+ 2 - 1
lib/Gedmo/Mapping/Driver/Chain.php

@@ -55,7 +55,8 @@ class Chain implements Driver
                 return;
             }
         }
-        throw new \Gedmo\Exception\UnexpectedValueException('Class ' . $meta->name . ' is not a valid entity or mapped super class.');
+        // commenting it for customized mapping support, debugging of such cases might get harder
+        //throw new \Gedmo\Exception\UnexpectedValueException('Class ' . $meta->name . ' is not a valid entity or mapped super class.');
     }
 
     /**