ManagedDataModelException.missingInverse(ManagedEntity entity, Symbol property, ManagedEntity destinationEntity, Symbol expectedProperty)
Source
factory ManagedDataModelException.missingInverse(
ManagedEntity entity,
Symbol property,
ManagedEntity destinationEntity,
Symbol expectedProperty) {
var expectedString = "Some property";
if (expectedProperty != null) {
expectedString = "'${_getName(expectedProperty)}'";
}
return new ManagedDataModelException(
"Relationship '${_getName(property)}' on "
"'${_getPersistentClassName(entity)}' has "
"no inverse property. Every relationship must have an inverse. "
"$expectedString on "
"'${_getPersistentClassName(destinationEntity)}'"
"is supposed to exist, and it should be either a "
"'${_getInstanceClassName(entity)}' or"
"'ManagedSet<${_getInstanceClassName(entity)} >'.");
}