evidenceDetails.caseIDKey cannot be resolved or is not a field

Symptom:
Compilation error in generated code: evidenceDetails.caseIDKey cannot be resolved or is not a field
Cause:
This error is also a result of the "caseIDKey" association between the <EvidenceEntity>Details struct and the EvidenceKey struct missing and should be dealt with in the same manner.
Solution:
Create an association as described between the two structs. See Asset Entity and Aggregations for more details.