diff --git a/Classes/Service/SequenceGenerator.php b/Classes/Service/SequenceGenerator.php index 715e6ab..9a38752 100644 --- a/Classes/Service/SequenceGenerator.php +++ b/Classes/Service/SequenceGenerator.php @@ -106,8 +106,8 @@ class SequenceGenerator { return (int) $this->entityManager->getConnection()->executeQuery( 'SELECT MAX(number) FROM ' - . $this->entityManager->getClassMetadata(Insert::class)->getTableName() - . ' WHERE type = :type', + . $this->entityManager->getClassMetadata(Insert::class)->getTableName() + . ' WHERE type = :type', ['type' => $this->inferTypeFromSource($type)] )->fetchAll(\PDO::FETCH_COLUMN)[0]; }