public function __construct(\Doctrine\ORM\EntityManager $orm, ImageService $imageService) { $this->orm = $orm; $this->imageService = $imageService; }