/** * {@inheritDoc} */ public function load(ConfigProxy $config) { $result = $this->_qbFactory->getQueryBuilder()->select($this->_columns)->from('refer_a_friend_reward_trigger')->where('reward_config_id = :id?i', ['id' => $config->getID()])->getQuery()->run(); $triggers = new Collection(); foreach ($result as $row) { $triggers->add($this->_triggers->get($row->name)); } return $triggers; }
/** * Create and return a new instance of ConfigProxy, with the entity loaders set * * @return ConfigProxy */ public function getConfigProxy() { $config = new ConfigProxy($this->_translator); $config->setLoaders($this->_loaders); return $config; }