diff --git a/src/Database/Table/Selection.php b/src/Database/Table/Selection.php index 7ca6d7e2c..490dc6b0b 100644 --- a/src/Database/Table/Selection.php +++ b/src/Database/Table/Selection.php @@ -821,7 +821,7 @@ public function insert($data) ? implode('.', array_map([$this->context->getConnection()->getSupplementalDriver(), 'delimite'], explode('.', $tmp))) : NULL ); - if ($primaryKey === FALSE) { + if ($primaryKey === FALSE || $primaryKey === '0') { unset($this->refCache['referencing'][$this->getGeneralCacheKey()][$this->getSpecificCacheKey()]); return $return->getRowCount(); }