Пример #1
0
 /**
  * Updates prices by their associated ids and values
  * 
  * @param array $pair
  * @return boolean
  */
 public function updatePrices(array $pair)
 {
     foreach ($pair as $id => $price) {
         if (!$this->productMapper->updatePriceById($id, $price)) {
             return false;
         }
     }
     return true;
 }