Closed AllanOricil closed 3 years ago
Ok, I tried again doing this way
DocumentSigningRequestSigner__c documentSigningRequestSigner = new DocumentSigningRequestSigner__c(
Id = fflib_IDGenerator.generate(Schema.DocumentSigningRequestSigner__c.SObjectType),
Contact__r = c,
DocumentSigningRequest__r = documentSignignRequest
);
and it worked
I think when I tried it for the first time I may have forgotten something
I have the following relationships
DocumentSigningRequestc 1 : N DocumentSigningRequestSignerc DocumentSigningRequestSigner__c 1 : 1 Contact
I used
makeRelationship
in the following wayThis is what it outputs
I have also tried to create a DocumentSigningRequestSigner__c using object references but it also did not work.
So how can I make it return Contact__r.FirstName?
I need it because Im going to use this object in a selector mock