Пример #1
0
 function addCopies($number_added)
 {
     $copy = Copy::findBook($this->getId());
     $new_amount = $copy->getAmount() + $number_added;
     $copy->update($new_amount);
 }