unsetRelation method

void unsetRelation(
  1. String name
)
inherited

Removes a relation from the cache and marks it as not loaded.

Example:

post.unsetRelation('author');

Implementation

void unsetRelation(String name) {
  _relationValues[this]?.remove(name);
  _loadedRelations[this]?.remove(name);
}