Silex and Doctrine REST