public function itemsAction($id) {
        $em = $this->getDoctrine()->getManager();
        $gallery = $em->getRepository('AmulenMediaBundle:Gallery')->find($id);

        if (!$gallery) {
            throw $this->createNotFoundException('Unable to find Gallery entity.');
        }

        return array(
            'gallery' => $gallery,
            'items' => $gallery->getGalleryItems(),
        );
    }