I have a Doctrine entity (FieldOption) which represents one single option in a select field in a form (e.g. Red, Green, Blue). A user, at any point in time, can opt to delete options from fields (e.g. removing Green) and for this I have set the entity to be soft deletable using Gedmo, which works perfectly.
When an option that is stored against at least one submission of the form is deleted however, that submission entity (which has a relationship to the FieldOption entity) fails to load as the FieldOption is filtered out. Really, I only want the soft delete functionality to occur when returning the data for rendering the form - viewing existing records linked to that entity should still be able to load the soft deleted options by default.
Is there a way to disable this filter when retrieved via another entity, but ensure that the filter is enabled when loading the list of options directly?