Ejemplo n.º 1
0
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->shippingTemplateModel = NULL);
     $temp && ($this->shippingServiceSourceModels = array());
     return $temp;
 }
Ejemplo n.º 2
0
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->categoryTemplateModel = NULL);
     $temp && ($this->categorySpecificSourceModels = array());
     return $temp;
 }
Ejemplo n.º 3
0
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->accountModel = NULL);
     $temp && ($this->marketplaceModel = NULL);
     $temp && ($this->magentoProductModel = NULL);
     return $temp;
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 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();
 }
Ejemplo n.º 6
0
 public function getCacheGroupTags()
 {
     return array_merge(parent::getCacheGroupTags(), ['template']);
 }
Ejemplo n.º 7
0
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->paymentTemplateModel = NULL);
     return $temp;
 }
Ejemplo n.º 8
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('Ess\\M2ePro\\Model\\ResourceModel\\Listing\\Auto\\Category');
 }
Ejemplo n.º 9
0
 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);
 }
Ejemplo n.º 10
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('Ess\\M2ePro\\Model\\ResourceModel\\Ebay\\Account\\PickupStore\\State');
 }
Ejemplo n.º 11
0
 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);
 }
Ejemplo n.º 12
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('Ess\\M2ePro\\Model\\ResourceModel\\Ebay\\Listing\\Product\\PickupStore');
 }