[~TASK] Extbase (Property): Replaced deprecated function withUid().
authorJochen Rau <j.rau@web.de>
Wed, 21 Apr 2010 12:33:39 +0000 (12:33 +0000)
committerJochen Rau <j.rau@web.de>
Wed, 21 Apr 2010 12:33:39 +0000 (12:33 +0000)
typo3/sysext/extbase/Classes/Property/Mapper.php

index ad84b51..dc0e8a2 100644 (file)
@@ -313,7 +313,7 @@ class Tx_Extbase_Property_Mapper {
        protected function findObjectByUid($dataType, $uid) {
                $query = $this->queryFactory->create($dataType);
                $query->getQuerySettings()->setRespectSysLanguage(FALSE);
-               $result = $query->matching($query->withUid($uid))->execute();
+               $result = $query->matching($query->equals('uid', intval($uid)))->execute();
                $object = NULL;
                if (count($result) > 0) {
                        $object = current($result);