casting the id to integer would avoid extra job from doctrine