change type for amount doctrine field
add parameter user_class to specify the User class needed for entity
relations