Browse Source

[tree] fix the exception message for tree repository

gedi 13 years ago
parent
commit
df91c57e8a
1 changed files with 2 additions and 2 deletions
  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)) {
-            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;
@@ -51,4 +51,4 @@ abstract class AbstractTreeRepository extends EntityRepository
      * @return bool
      */
     abstract protected function validate();
-}
+}