ManagedDataModelException.multipleDestinationEntities(ManagedEntity entity, Symbol property, List<ManagedEntity> possibleEntities)
Source
factory ManagedDataModelException.multipleDestinationEntities(
ManagedEntity entity,
Symbol property,
List<ManagedEntity> possibleEntities) {
var destType =
entity.persistentType.instanceMembers[property].returnType.simpleName;
return new ManagedDataModelException(
"Relationship '${_getName(property)}' on "
"'${_getPersistentClassName(entity)}' expects that just one "
"'ManagedObject' subclass uses a persistent type that extends "
"'${_getName(destType)}. But the following implementations were found: "
"${possibleEntities.map((e) => _getInstanceClassName(e))}. That's just "
"how it is for now.");
}