Make sure relationshipClass is set, if it is not then mappingToCollection will be false.