/** * If we failed to insert Collections/Binaries/Parts, rollback the transaction and add the parts to part repair. * * @param array $headers Array of headers containing sub-arrays with parts. * * @return array Array of article numbers to add to part repair. * * @access protected */ protected function _rollbackAddToPartRepair(array $headers) { $headersNotInserted = []; foreach ($headers as $header) { foreach ($header as $file) { $headersNotInserted[] = $file['Parts']['number']; } } $this->_pdo->Rollback(); return $headersNotInserted; }