[BUGFIX] Doctrine: Provide table name to lastInsertId()
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / Generic / Storage / Typo3DbBackend.php
index e34d4e1..d20f11e 100644 (file)
@@ -153,7 +153,7 @@ class Typo3DbBackend implements BackendInterface, SingletonInterface
             throw new SqlErrorException($e->getPrevious()->getMessage(), 1470230766);
         }
 
-        $uid = $connection->lastInsertId();
+        $uid = $connection->lastInsertId($tableName);
 
         if (!$isRelation) {
             $this->clearPageCache($tableName, $uid);