diff --git a/src/Model/Component.php b/src/Model/Component.php index df37f8f..30e301c 100644 --- a/src/Model/Component.php +++ b/src/Model/Component.php @@ -145,8 +145,7 @@ public function setIdentifier($identifier) } $this->identifier = $identifier; - $identifierMigrated = is_array($identifier) ? reset($identifier) : $identifier; - $this->identifierMigrated = (string) $identifierMigrated; + $this->identifierMigrated = json_encode($identifier); if (null !== $this->getModel()) { $this->buildHash();