How Cancel The Delete in ‘’$useSoftDeletes = true‘’ |
07-27-2022, 11:28 PM
(This post was last modified: 07-27-2022, 11:31 PM by ozornick. Edit Reason: Add info )
Yesterday I ran into this situation. If you set the entity $user->deletedAt = null, it may not be able to update the entry. It says "No data to update"
The $user->hasChanged() method returns true. If you make a request using QB $model->set(deleted_at, null)->update(id), it also fails to save |
Messages In This Thread |
How Cancel The Delete in ‘’$useSoftDeletes = true‘’ - by cwwjsyc - 07-26-2022, 12:19 AM
RE: How Cancel The Delete in ‘’$useSoftDeletes = true‘’ - by kilishan - 07-26-2022, 12:59 PM
RE: How Cancel The Delete in ‘’$useSoftDeletes = true‘’ - by ozornick - 07-27-2022, 11:28 PM
RE: How Cancel The Delete in ‘’$useSoftDeletes = true‘’ - by SoccerGuy3 - 10-14-2022, 08:14 AM
RE: How Cancel The Delete in ‘’$useSoftDeletes = true‘’ - by InsiteFX - 10-15-2022, 12:06 AM
|