[+BUGFIX] Extbase (Persistence): Corrected a wrong exception message in Persistence...
authorSebastian Kurfürst <sebastian@typo3.org>
Fri, 18 Sep 2009 07:35:04 +0000 (07:35 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Fri, 18 Sep 2009 07:35:04 +0000 (07:35 +0000)
typo3/sysext/extbase/Classes/Persistence/Repository.php

index e8d6096..7df25aa 100644 (file)
@@ -107,7 +107,7 @@ class Tx_Extbase_Persistence_Repository implements Tx_Extbase_Persistence_Reposi
         */
        public function remove($object) {
                if (!($object instanceof $this->objectType)) {
-                       throw new Tx_Extbase_Persistence_Exception_IllegalObjectType('The object given to add() was not of the type (' . $this->objectType . ') this repository manages.', 1248363335);
+                       throw new Tx_Extbase_Persistence_Exception_IllegalObjectType('The object given to remove() was not of the type (' . $this->objectType . ') this repository manages.', 1248363335);
                }
 
                if ($this->addedObjects->contains($object)) {