lookups ) { // @Todo Add newFromIds() to Revision $dbr = wfGetDB( DB_REPLICA ); $revQuery = Revision::getQueryInfo( [ 'page', 'user' ] ); $res = $dbr->select( $revQuery['tables'], $revQuery['fields'], [ 'rev_id' => $this->lookups ], __METHOD__, [], $revQuery['joins'] ); if ( $res ) { foreach ( $res as $row ) { $this->targets->set( $row->rev_id, new Revision( $row ) ); } $this->lookups = []; } } } }