Generating doctrine class for database access