Gallery module based on Doctrine