def get_orders(orders_items):
    """
    Search orders that are linked with other objects from parameter
    :param orders_items: OrdersLoadingPlaces or OrdersDestinationPlaces or OrdersVehicles objects
    :return: found orders
    """
    orders = list()
    for order_item in orders_items:
        orders.append(order_item.order.pk)

    return orders