{% for classEnrol in student.getClassSessionEnrolments.toArray() %}
{% if classEnrol.getClassSession is not empty %}
{{ classEnrol.getClassSession.name }}
{% endif %}
{% endfor %}
{% set newArray = [] %}
{% for allocateClass in teacher.getAllocateTeacherToClassAndSubjects.toArray() %}
{% if allocateClass.getClass is not empty and allocateClass.class.id not in newArray %}
{{ allocateClass.getClass.name }}
{% set newArray = newArray|merge([allocateClass.class.id]) %}
{% endif %}
{% endfor %}