…and it doesn’t fail if you use runtime proxies for the entities. So in that case it knows how to deal with the `Visit.petId` field being of type int. Shouldn’t it work the same for compile time enhancement?