You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Its not a bug.Suppose you added new email in database which already exits in db but currently soft deleted but when in future you want to restore that soft deleted data then you will have two entries with same email in database.So if you don't have any intention to restore soft deleted data then its better to deleted that entry.
You are mixing two things together. UNIQUE attribute is database constraint and soft delete is just CodeIgniter way how to select (ignore soft deleted rows). But you can not have two same unique values in the database (NEVER).
Hi,
I try to use the soft deletes provided by framework, but when use in validation rules unique,
it doesn't ignores the deleted records.
The text was updated successfully, but these errors were encountered: