Here i need to insert data record automatically in Database using Yii2 when the condition met
i have two table claim and pending
In claim table i have 10 fields including i have another field called turnaroundtime here i will set a date
if the claim table doesn't update on or before the turnaroundtime, then some data from the claim table have to move to another table called pending.
How can i achieve this using Yii 2 Framework
Note: In claim table i also have created_at and updated_at fields also