I have a set of 'clients' and they are displayed in a GridView. 'Clients' can not be deleted by the average user, only marked for deletion. However I would like it so they are not displayed in the list once they are marked for deletion.
I am using Yii2, and the soft deletion table contains has three columns that concern the data 'foreign_table', 'foreign_column' and 'foreign_value'. It is set up like so as I do not want to delete data from the 'Clients' table unless it is needed.
How would I go about filtering the results of the GridView?
Would I use $model->search?