Fixed loading metadata for parent classes

This fix solves the problem in FSi Doctrine Extensions - https://github.com/fsi-open/doctrine-extensions/issues/39