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