function addCopies($number_added) { $copy = Copy::findBook($this->getId()); $new_amount = $copy->getAmount() + $number_added; $copy->update($new_amount); }