protected function getEntityHashesFromRelation(string $relation): array
    {
        return array_map(function (Aggregate $aggregate) {
            return $aggregate->getEntityHash();
        }, $this->relationships[$relation]);
    }