hasField wrongly returns false if the field is inherited
Merge pull request #525 from asiragusa/classmetadata-fix

hasField wrongly returns false if the field is inherited