private function forceRemoveProcessing(\Ess\M2ePro\Model\Processing $processing) { $table = $this->activeRecordFactory->getObject('Processing\\Lock')->getResource()->getMainTable(); $this->resourceConnection->getConnection()->delete($table, array('`processing_id` = ?' => (int) $processing->getId())); $table = $this->activeRecordFactory->getObject('Processing')->getResource()->getMainTable(); $this->resourceConnection->getConnection('core_write')->delete($table, array('`id` = ?' => (int) $processing->getId())); }
public function setProcessingObject(\Ess\M2ePro\Model\Processing $processingObject) { $this->processingObject = $processingObject; $this->setParams($processingObject->getParams()); return $this; }