|
7 | 7 | namespace Magento\Customer\Model\ResourceModel;
|
8 | 8 |
|
9 | 9 | use Magento\Customer\Api\CustomerMetadataInterface;
|
| 10 | +use Magento\Customer\Api\CustomerRepositoryInterface; |
10 | 11 | use Magento\Customer\Api\Data\CustomerInterface;
|
11 | 12 | use Magento\Customer\Api\Data\CustomerSearchResultsInterfaceFactory;
|
12 |
| -use Magento\Framework\Api\ExtensibleDataObjectConverter; |
13 |
| -use Magento\Framework\Api\ExtensionAttribute\JoinProcessorInterface; |
| 13 | +use Magento\Customer\Model\Customer as CustomerModel; |
| 14 | +use Magento\Customer\Model\Customer\NotificationStorage; |
14 | 15 | use Magento\Customer\Model\CustomerFactory;
|
15 | 16 | use Magento\Customer\Model\CustomerRegistry;
|
16 | 17 | use Magento\Customer\Model\Data\CustomerSecureFactory;
|
17 |
| -use Magento\Customer\Model\Customer\NotificationStorage; |
18 | 18 | use Magento\Customer\Model\Delegation\Data\NewOperation;
|
19 |
| -use Magento\Customer\Api\CustomerRepositoryInterface; |
| 19 | +use Magento\Customer\Model\Delegation\Storage as DelegatedStorage; |
20 | 20 | use Magento\Framework\Api\DataObjectHelper;
|
| 21 | +use Magento\Framework\Api\ExtensibleDataObjectConverter; |
| 22 | +use Magento\Framework\Api\ExtensionAttribute\JoinProcessorInterface; |
21 | 23 | use Magento\Framework\Api\ImageProcessorInterface;
|
| 24 | +use Magento\Framework\Api\Search\FilterGroup; |
22 | 25 | use Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface;
|
23 | 26 | use Magento\Framework\Api\SearchCriteriaInterface;
|
24 |
| -use Magento\Framework\Api\Search\FilterGroup; |
25 |
| -use Magento\Framework\Event\ManagerInterface; |
26 |
| -use Magento\Customer\Model\Delegation\Storage as DelegatedStorage; |
27 | 27 | use Magento\Framework\App\ObjectManager;
|
| 28 | +use Magento\Framework\Event\ManagerInterface; |
28 | 29 | use Magento\Store\Model\StoreManagerInterface;
|
29 | 30 |
|
30 | 31 | /**
|
@@ -203,7 +204,7 @@ public function save(CustomerInterface $customer, $passwordHash = null)
|
203 | 204 | $customer->setAddresses([]);
|
204 | 205 | $customerData = $this->extensibleDataObjectConverter->toNestedArray($customer, [], CustomerInterface::class);
|
205 | 206 | $customer->setAddresses($origAddresses);
|
206 |
| - /** @var Customer $customerModel */ |
| 207 | + /** @var CustomerModel $customerModel */ |
207 | 208 | $customerModel = $this->customerFactory->create(['data' => $customerData]);
|
208 | 209 | //Model's actual ID field maybe different than "id" so "id" field from $customerData may be ignored.
|
209 | 210 | $customerModel->setId($customer->getId());
|
|
0 commit comments