ManagedDataModelException.invalidMetadata(ManagedEntity entity, Symbol property, ManagedEntity destinationEntity)

Source

factory ManagedDataModelException.invalidMetadata(
    ManagedEntity entity, Symbol property, ManagedEntity destinationEntity) {
  return new ManagedDataModelException(
      "Relationship '${_getName(property)}' on "
      "'${_getPersistentClassName(entity)}' "
      "cannot both have 'ManagedColumnAttributes' and 'ManagedRelationship' metadata. "
      "To add flags for indexing or nullability to a relationship, see the constructor "
      "for 'ManagedRelationship'.");
}