Hi all,
I have a situation where I load a model $Interaction that is related to models Departments. I then do a bunch of separate operations that affect which departments are related to $Interaction. After these operations, I call $Interaction->refresh(). However I find that $Interaction->Departments still gives me the models that were related before the operations are done. To get $Interaction->Departments to update, I have to re-query for a new $Interaction.
Is there a way to "purge the cache" so to speak? I know related models are loaded lazily - is there a way to tell model that it needs to reload related models?