/** * Update orders by their associated ids * * @param array $pair * @return boolean */ public function updateOrders(array $pair) { foreach ($pair as $id => $order) { if (!$this->photoMapper->updateOrderById($id, $order)) { return false; } } return true; }