瀏覽代碼

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

gedi 13 年之前
父節點
當前提交
43538c3ee3
共有 1 個文件被更改,包括 2 次插入1 次删除
  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.');
     }
 
     /**