Why waste the resources in fetching the entire entity when you need just the id, do something like:
personDbId = self.session().query(PersonMapped.Id).filter(PersonMapped.PhoneNumber == phoneNumber).one()