diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c58599..ef9b2da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +## [1.0.3] +* change: property key name to title in schema + ## [1.0.2] * fix: change signature * fix: delete dignature diff --git a/composer.json b/composer.json index a842e5d..8ec473a 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "flux-eco/aggregate-root", "description": "Manage aggregate roots described as json schema", - "version": "1.0.2", + "version": "1.0.3", "type": "flux-app", "keywords": [ "flux-eco", diff --git a/src/Core/Ports/AggregateRootService.php b/src/Core/Ports/AggregateRootService.php index 821eab0..8480f54 100644 --- a/src/Core/Ports/AggregateRootService.php +++ b/src/Core/Ports/AggregateRootService.php @@ -25,7 +25,7 @@ public static function new(Outbounds $aggregateRootOutbounds) : self final public function initialize() : void { foreach ($this->getAggregateRootSchemas() as $schema) { - $aggregateName = $schema['name']; + $aggregateName = $schema['title']; $createEventStorageProcess = Processes\CreateAggregateRootEventStorageProcess::new();