Make sure relationshipClass is set, if it is not then mappingToCollection will be false.
Merge branch 'forceOne' into zerista