public function deleteByAction(\Ess\M2ePro\Model\Amazon\Processing\Action $action) { return $this->getConnection()->delete($this->getMainTable(), array('action_id = ?' => $action->getId())); }
public function setActionFilter(\Ess\M2ePro\Model\Amazon\Processing\Action $action) { $this->addFieldToFilter('main_table.action_id', (int) $action->getId()); return $this; }