{# gallery \Notimeo\GalleriesBundle\Entity\Gallery #} {# images \Notimeo\GalleriesBundle\Entity\GalleryImage[] #} {% import 'macros.twig' as macros %} {% if gallery|default(false) and gallery.images is iterable %} {% for image in images %}