{% set customers = getCustomers() %} {% for customer in customers %} {% set user = customer.user %} {% set profile = user.profile %} {% endfor %}