[BUGFIX] Empty __call() function hides implementation errors 64/23764/2
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Wed, 11 Sep 2013 17:06:53 +0000 (19:06 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Wed, 11 Sep 2013 17:41:48 +0000 (19:41 +0200)
Throw an Exception if this method hits.

Change-Id: Ide94043bb008e1dfaf19b452570ce70d5f2aa432
Resolves: #51924
Releases: 6.2, 6.1
Reviewed-on: https://review.typo3.org/23764
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/core/Classes/Resource/AbstractRepository.php

index 68a1260..0975765 100644 (file)
@@ -274,10 +274,12 @@ abstract class AbstractRepository implements \TYPO3\CMS\Extbase\Persistence\Repo
         *
         * @param string $method Name of the method
         * @param array $arguments The arguments
+        *
+        * @throws \BadMethodCallException
         * @return void
         */
        public function __call($method, $arguments) {
-               // deliberately empty
+               throw new \BadMethodCallException('Repository method "' . $method . '" is not implemented.', 1378918410);
        }
 
        /**