/** * @param Ess_M2ePro_Model_Processing_Request $processingRequest * @throws Ess_M2ePro_Model_Exception_Logic */ public function unsetProcessingLocks(Ess_M2ePro_Model_Processing_Request $processingRequest) { parent::unsetProcessingLocks($processingRequest); $this->getAccount()->deleteObjectLocks(NULL, $processingRequest->getHash()); $this->getAccount()->deleteObjectLocks('server_synchronize', $processingRequest->getHash()); $this->getAccount()->deleteObjectLocks('adding_to_server', $processingRequest->getHash()); }
/** * @param Ess_M2ePro_Model_Processing_Request $processingRequest * @throws Ess_M2ePro_Model_Exception_Logic */ public function unsetProcessingLocks(Ess_M2ePro_Model_Processing_Request $processingRequest) { parent::unsetProcessingLocks($processingRequest); foreach ($this->getOrders() as $order) { $order->deleteObjectLocks('refund_order', $processingRequest->getHash()); } }
/** * @param Ess_M2ePro_Model_Processing_Request $processingRequest * @throws Ess_M2ePro_Model_Exception * @throws Ess_M2ePro_Model_Exception_Logic */ public function unsetProcessingLocks(Ess_M2ePro_Model_Processing_Request $processingRequest) { parent::unsetProcessingLocks($processingRequest); $identifier = $this->getLockIdentifier(); $tempListings = array(); $tempParentListingProducts = array(); foreach ($this->listingsProducts as $listingProduct) { /** @var $listingProduct Ess_M2ePro_Model_Listing_Product */ $listingProduct->deleteObjectLocks(NULL, $processingRequest->getHash()); $listingProduct->deleteObjectLocks('in_action', $processingRequest->getHash()); $listingProduct->deleteObjectLocks($identifier . '_action', $processingRequest->getHash()); /** @var Ess_M2ePro_Model_Amazon_Listing_Product $amazonListingProduct */ $amazonListingProduct = $listingProduct->getChildObject(); $variationManager = $amazonListingProduct->getVariationManager(); if ($variationManager->isRelationChildType()) { /** @var Ess_M2ePro_Model_Amazon_Listing_Product $parentListingProduct */ $parentListingProduct = $variationManager->getTypeModel()->getParentListingProduct(); if (isset($tempParentListingProducts[$parentListingProduct->getId()])) { continue; } $parentListingProduct->deleteObjectLocks(NULL, $processingRequest->getHash()); $parentListingProduct->deleteObjectLocks('child_products_in_action', $processingRequest->getHash()); $tempParentListingProducts[$parentListingProduct->getId()] = true; } if (isset($tempListings[$listingProduct->getListingId()])) { continue; } $listingProduct->getListing()->deleteObjectLocks(NULL, $processingRequest->getHash()); $tempListings[$listingProduct->getListingId()] = true; } }
public function unsetProcessingLocks(Ess_M2ePro_Model_Processing_Request $processingRequest) { parent::unsetProcessingLocks($processingRequest); try { $this->getAccount()->deleteObjectLocks(NULL, $processingRequest->getHash()); $this->getAccount()->deleteObjectLocks('server_synchronize', $processingRequest->getHash()); $this->getAccount()->deleteObjectLocks('deleting_from_server', $processingRequest->getHash()); } catch (Exception $exception) { } }