/** * Constructor * Configures collection * * @return void */ protected function _construct() { parent::_construct(); $this->_init('Magento\\Newsletter\\Model\\Subscriber', 'Magento\\Newsletter\\Model\\ResourceModel\\Subscriber'); $this->_queueLinkTable = $this->getTable('newsletter_queue_link'); $this->_storeTable = $this->getTable('store'); $this->_map['fields']['type'] = $this->getResource()->getConnection()->getCheckSql('main_table.customer_id = 0', 1, 2); $this->_map['fields']['website_id'] = 'store.website_id'; $this->_map['fields']['group_id'] = 'store.group_id'; $this->_map['fields']['store_id'] = 'main_table.store_id'; }
/** * Define resource model * * @return void */ protected function _construct() { parent::_construct(); $this->_init('Magento\\Widget\\Model\\Layout\\Update', 'Magento\\Widget\\Model\\ResourceModel\\Layout\\Update'); }
/** * {@inheritdoc} */ protected function _construct() { parent::_construct(); $this->_init('Magento\\Sales\\Model\\Order', 'Magento\\Sales\\Model\\ResourceModel\\Order'); }
/** * @return void * @codeCoverageIgnore */ protected function _construct() { parent::_construct(); $this->_init('Magento\\CatalogRule\\Model\\Rule\\Product\\Price', 'Magento\\CatalogRule\\Model\\ResourceModel\\Rule\\Product\\Price'); }
/** * Define resource model * * @return void */ protected function _construct() { parent::_construct(); $this->_init('Magento\\Variable\\Model\\Variable', 'Magento\\Variable\\Model\\ResourceModel\\Variable'); }
/** * Constructor * * @return void */ protected function _construct() { parent::_construct(); $this->_init('Magento\\SalesRule\\Model\\Coupon', 'Magento\\SalesRule\\Model\\ResourceModel\\Coupon'); }