_scope = $scope; $this->_scopeId = $scopeId; parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource); } /** * Initialize select * * @return $this */ protected function _initSelect() { parent::_initSelect(); $this->addFieldToSelect(['path', 'value'])->addFieldToFilter('scope', $this->_scope); if ($this->_scopeId !== null) { $this->addFieldToFilter('scope_id', $this->_scopeId); } return $this; } }