瀏覽代碼

[tree] fix the exception message for tree repository

gedi 13 年之前
父節點
當前提交
df91c57e8a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/Gedmo/Tree/Entity/Repository/AbstractTreeRepository.php

+ 2 - 2
lib/Gedmo/Tree/Entity/Repository/AbstractTreeRepository.php

@@ -35,7 +35,7 @@ abstract class AbstractTreeRepository extends EntityRepository
         }
         }
 
 
         if (is_null($treeListener)) {
         if (is_null($treeListener)) {
-            throw new \Gedmo\Exception\InvalidMappingException('This repository can be attached only to ORM tree listener');
+            throw new \Gedmo\Exception\InvalidMappingException('Tree listener was not found on your entity manager, it must be hooked into the event manager');
         }
         }
 
 
         $this->listener = $treeListener;
         $this->listener = $treeListener;
@@ -51,4 +51,4 @@ abstract class AbstractTreeRepository extends EntityRepository
      * @return bool
      * @return bool
      */
      */
     abstract protected function validate();
     abstract protected function validate();
-}
+}