connectionProvider = $connectionProvider; parent::__construct( $list, $row ); } /** * @return string */ public function getIdField(): string { return 'ar_rev_id'; } /** * @return int */ public function getId(): int { return $this->getRevisionRecord()->getId(); } /** * @param int $bits * @return bool */ public function setBits( $bits ): bool { $dbw = $this->connectionProvider->getPrimaryDatabase(); $dbw->newUpdateQueryBuilder() ->update( 'archive' ) ->set( [ 'ar_deleted' => $bits ] ) ->where( [ 'ar_rev_id' => $this->row->ar_rev_id, 'ar_deleted' => $this->getBits(), ] ) ->caller( __METHOD__ )->execute(); return (bool)$dbw->affectedRows(); } }