// TODO This is really "ManagedRelationships" so needs to go in RelationshipManager
ObjectProvider elementOP = ec.findObjectProvider(element);
if (relationType == RelationType.ONE_TO_MANY_BI) {
// Managed Relations : 1-N bidir, so update the owner of the element
elementOP.isLoaded(getFieldNumberInElementForBidirectional(elementOP)); // Ensure is loaded
Object oldOwner = elementOP.provideField(getFieldNumberInElementForBidirectional(elementOP));
if (oldOwner != newOwner) {
if (NucleusLogger.PERSISTENCE.isDebugEnabled()) {
NucleusLogger.PERSISTENCE.debug(LOCALISER.msg("055009", StringUtils.toJVMIDString(op.getObject()),
ownerMemberMetaData.getFullFieldName(), StringUtils.toJVMIDString(element)));
}