setting managedObject's relationship value will occur error like 'Illegal attempt to establish a relationship ‘u’ser between objects in different contexts in NSBatchInsertRequest
how to set relationship value of managedObject in NSBatchInsertRequest
Setting relationships in batch requests is not supported. Check out the WWDC talks from 2019 and 2020.