A JSON RESTful API created in Slim Framework and Doctrine2