clearRelations method
void
clearRelations()
inherited
Clears all cached relations.
Useful when refreshing a model and wanting to reload all relations.
Example:
post.clearRelations();
await post.load('author'); // Will fetch fresh
Implementation
void clearRelations() {
_relationValues[this]?.clear();
_loadedRelations[this]?.clear();
}