Closed wimvelzeboer closed 2 years ago
With this change we can link multiple records to the same parent record.
fflib_ISObjectUnitOfWork unitOfWork = Application.UnitOfWork.newInstance(); Account accountRecord = new Account(Name = 'Test'); unitOfWork.registerNew(accountRecord); List<Contact> contactRecords = new List<Contact> { new Contact(Lastname = 'Smith'), new Contact(LastName = 'Janssen') }; unitOfWork.registerNew(contactRecords, Contact.AccountId, accountRecord); unitOfWork.commitWork();
This change is
With this change we can link multiple records to the same parent record.
This change is![Reviewable](https://reviewable.io/review_button.svg)