Skip to content

Commit 9843afc

Browse files
committed
ACP2E-3492: added resetState
1 parent 88660e7 commit 9843afc

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

app/code/Magento/CustomerGraphQl/Model/Resolver/Cache/Customer/ModelHydrator.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2023 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -59,4 +59,14 @@ public function hydrate(array &$resolverData): void
5959
$resolverData['model'] = $this->customerModels[$resolverData['model_id']];
6060
}
6161
}
62+
63+
/**
64+
* Reset customerModels
65+
*
66+
* @return void
67+
*/
68+
public function _resetState(): void
69+
{
70+
$this->customerModels = [];
71+
}
6272
}

0 commit comments

Comments
 (0)