[~API][+FEATURE] Extbase (Persistence): findByUid($uid) does now allow strings as...
authorJochen Rau <j.rau@web.de>
Tue, 25 May 2010 15:52:29 +0000 (15:52 +0000)
committerJochen Rau <j.rau@web.de>
Tue, 25 May 2010 15:52:29 +0000 (15:52 +0000)
typo3/sysext/extbase/Classes/Persistence/Repository.php

index c63566b..3a5a25c 100644 (file)
@@ -241,7 +241,6 @@ class Tx_Extbase_Persistence_Repository implements Tx_Extbase_Persistence_Reposi
         * @api
         */
        public function findByUid($uid) {
-               if (!is_int($uid) || $uid < 0) throw new InvalidArgumentException('The uid must be a positive integer', 1245071889);
                if ($this->identityMap->hasIdentifier($uid, $this->objectType)) {
                        $object = $this->identityMap->getObjectByIdentifier($uid, $this->objectType);
                } else {