[Doctrine] fixed Unable to get Type when Field is a Join column, and fixed using unresolvable field with DQL