[BUGFIX] Doctrine: Provide table name to lastInsertId()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / Index / FileIndexRepository.php
index 05d1fc2..2537d1d 100644 (file)
@@ -329,7 +329,7 @@ class FileIndexRepository implements SingletonInterface
             $this->table,
             $data
         );
-        $data['uid'] = $connection->lastInsertId();
+        $data['uid'] = $connection->lastInsertId($this->table);
         $this->updateRefIndex($data['uid']);
         $this->emitRecordCreatedSignal($data);
         return $data['uid'];