controller and doctrine