diff --git a/src/Entity/SparqlGraph.php b/src/Entity/SparqlGraph.php index ee09f05..07661b8 100644 --- a/src/Entity/SparqlGraph.php +++ b/src/Entity/SparqlGraph.php @@ -161,7 +161,7 @@ public function setEntityTypeIds(?array $entity_type_ids): SparqlGraphInterface * {@inheritdoc} */ public function delete() { - if (!$this->isUninstalling() && ($this->id() === static::DEFAULT)) { + if (!$this->isSyncing() && !$this->isUninstalling() && ($this->id() === static::DEFAULT)) { throw new \RuntimeException("The '" . static::DEFAULT . "' graph cannot be deleted."); } parent::delete();