Index: trunk/phase3/includes/DBDataObject.php |
— | — | @@ -81,15 +81,6 @@ |
82 | 82 | protected $inSummaryMode = false; |
83 | 83 | |
84 | 84 | /** |
85 | | - * The database connection to use for read operations. |
86 | | - * Can be changed via @see setReadDb. |
87 | | - * |
88 | | - * @since 1.20 |
89 | | - * @var integer DB_ enum |
90 | | - */ |
91 | | - protected $readDb = DB_SLAVE; |
92 | | - |
93 | | - /** |
94 | 85 | * Constructor. |
95 | 86 | * |
96 | 87 | * @since 1.20 |
— | — | @@ -530,28 +521,6 @@ |
531 | 522 | } |
532 | 523 | |
533 | 524 | /** |
534 | | - * Get the database type used for read operations. |
535 | | - * |
536 | | - * @since 1.20 |
537 | | - * |
538 | | - * @return integer DB_ enum |
539 | | - */ |
540 | | - public function getReadDb() { |
541 | | - return $this->readDb; |
542 | | - } |
543 | | - |
544 | | - /** |
545 | | - * Set the database type to use for read operations. |
546 | | - * |
547 | | - * @param integer $db |
548 | | - * |
549 | | - * @since 1.20 |
550 | | - */ |
551 | | - public function setReadDb( $db ) { |
552 | | - $this->readDb = $db; |
553 | | - } |
554 | | - |
555 | | - /** |
556 | 525 | * Add an amount (can be negative) to the specified field (needs to be numeric). |
557 | 526 | * |
558 | 527 | * @since 1.20 |
Index: trunk/phase3/includes/DBTable.php |
— | — | @@ -423,7 +423,7 @@ |
424 | 424 | foreach ( $this->select( null, $conditions ) as /* DBDataObject */ $item ) { |
425 | 425 | $item->loadSummaryFields( $summaryFields ); |
426 | 426 | $item->setSummaryMode( true ); |
427 | | - $item->saveExisting(); |
| 427 | + $item->save(); |
428 | 428 | } |
429 | 429 | |
430 | 430 | $this->setReadDb( DB_SLAVE ); |