culpa icon indicating copy to clipboard operation
culpa copied to clipboard

deleted_by_id not being updated upon delete()

Open borger opened this issue 11 years ago • 1 comments

Hello, this is an amazing package I must say, but I'm having trouble to have the deleted_by_id field which is not being set after a softdelete. I can see that the delete_at field is updated as the updated_by_id, but not the deleted_by_id. I'm using the most recent version of Laravel:

"laravel/framework": "4.2.*", "rmasters/culpa": "dev-master"

For my host I'm using the Laravel's Homestead via vagrant.

Any thoughts?

Appreciate your work and feedback! :)

borger avatar Oct 22 '14 21:10 borger

Hi, sorry I've only just noticed this. I haven't tested Culpa on 4.2+ yet and don't really do much Laravel at the moment.

To debug, you could check when the updating() and deleting() events are being fired when you do a soft-delete. It might call updating and then deleting afterwards. If I get some time I'll try and take a look at this.

rmasters avatar Nov 29 '14 18:11 rmasters