Fixes issue, where some associations couldn't be found using
getAssociationTargetClass