diff --git a/src/Mapper/Dbal/StorageReflection/StorageReflection.php b/src/Mapper/Dbal/StorageReflection/StorageReflection.php index 70051dda..56941def 100644 --- a/src/Mapper/Dbal/StorageReflection/StorageReflection.php +++ b/src/Mapper/Dbal/StorageReflection/StorageReflection.php @@ -234,7 +234,6 @@ protected function findManyHasManyPrimaryColumns($joinTable, $sourceTable, $targ } if (!isset($sourceId, $targetId)) { - $this->platform->clearCache(); throw new InvalidStateException("No primary keys detected for many has many '{$joinTable}' join table."); }