identifierResolver = $identifierResolver; parent::__construct( $entityFactory, $logger, $fetchStrategy, $eventManager, $mainTable, $resourceModel, $identifierName ); } /** * {@inheritdoc} */ protected function _initSelect() { $bulkUuid = $this->identifierResolver->execute(); $this->getSelect()->from(['main_table' => $this->getMainTable()], ['id', 'result_message', 'error_code']) ->where('bulk_uuid=?', $bulkUuid) ->where('status=?', OperationInterface::STATUS_TYPE_RETRIABLY_FAILED) ->group('error_code') ->columns(['records_qty' => new \Zend_Db_Expr('COUNT(id)')]); return $this; } }