[BUGFIX] Doctrine: Provide table name to lastInsertId()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / Index / MetaDataRepository.php
index fc8fabc..f4a2c8a 100644 (file)
@@ -152,7 +152,7 @@ class MetaDataRepository implements SingletonInterface
         );
 
         $record = $emptyRecord;
-        $record['uid'] = $connection->lastInsertId();
+        $record['uid'] = $connection->lastInsertId($this->tableName);
         $record['newlyCreated']  = true;
 
         $this->emitRecordCreatedSignal($record);