public function delete() { $temp = parent::delete(); $temp && ($this->shippingTemplateModel = NULL); $temp && ($this->shippingServiceSourceModels = array()); return $temp; }
public function delete() { $temp = parent::delete(); $temp && ($this->categoryTemplateModel = NULL); $temp && ($this->categorySpecificSourceModels = array()); return $temp; }
public function delete() { $temp = parent::delete(); $temp && ($this->accountModel = NULL); $temp && ($this->marketplaceModel = NULL); $temp && ($this->magentoProductModel = NULL); return $temp; }
public function delete() { if (!parent::delete()) { return false; } $connection = $this->getResource()->getConnection(); $filterGroupRelation = $this->getResource()->getTable('m2epro_ebay_motor_filter_to_group'); $connection->delete($filterGroupRelation, array('filter_id = ?' => $this->getId())); return true; }
public function delete() { if ($this->isLocked()) { return false; } if (is_null($this->getId())) { throw new \Ess\M2ePro\Model\Exception\Logic('Method require loaded instance first'); } $connection = $this->getResource()->getConnection(); $connection->delete($this->activeRecordFactory->getObject('Ebay\\Listing\\Product\\PickupStore')->getResource()->getMainTable(), array('account_pickup_store_id = ?' => $this->getId())); $connection->delete($this->activeRecordFactory->getObject('Ebay\\Account\\PickupStore\\State')->getResource()->getMainTable(), array('account_pickup_store_id = ?' => $this->getId())); $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('ebay_account_pickup_store'); return parent::delete(); }
public function getCacheGroupTags() { return array_merge(parent::getCacheGroupTags(), ['template']); }
public function delete() { $temp = parent::delete(); $temp && ($this->paymentTemplateModel = NULL); return $temp; }
public function _construct() { parent::_construct(); $this->_init('Ess\\M2ePro\\Model\\ResourceModel\\Listing\\Auto\\Category'); }
public function __construct(\Ess\M2ePro\Model\ActiveRecord\Component\Parent\Factory $parentFactory, \Ess\M2ePro\Model\Factory $modelFactory, \Ess\M2ePro\Model\ActiveRecord\Factory $activeRecordFactory, \Ess\M2ePro\Helper\Factory $helperFactory, \Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = []) { $this->parentFactory = $parentFactory; parent::__construct($modelFactory, $activeRecordFactory, $helperFactory, $context, $registry, $resource, $resourceCollection, $data); }
public function _construct() { parent::_construct(); $this->_init('Ess\\M2ePro\\Model\\ResourceModel\\Ebay\\Account\\PickupStore\\State'); }
protected function _getResource() { if (is_null($this->childMode)) { return parent::_getResource(); } if (empty($this->_resourceName) && empty($this->_resource)) { throw new \Magento\Framework\Exception\LocalizedException(new \Magento\Framework\Phrase('The resource isn\'t set.')); } return $this->_resource ?: \Magento\Framework\App\ObjectManager::getInstance()->get($this->_resourceName)->setChildMode($this->childMode); }
public function _construct() { parent::_construct(); $this->_init('Ess\\M2ePro\\Model\\ResourceModel\\Ebay\\Listing\\Product\\PickupStore'); }