lookups ) { // @Todo Add newFromIds() to Revision $dbr = wfGetDB( DB_SLAVE ); $fields = array_merge( Revision::selectFields(), Revision::selectPageFields(), Revision::selectUserFields() ); $res = $dbr->select( [ 'revision', 'page', 'user' ], $fields, [ 'rev_id' => $this->lookups ], __METHOD__, [], [ 'page' => Revision::pageJoinCond(), 'user' => Revision::userJoinCond() ] ); if ( $res ) { foreach ( $res as $row ) { $this->targets->set( $row->rev_id, new Revision( $row ) ); } $this->lookups = []; } } } }