orchidsoftware / crud

Simplify the process of building CRUD (Create, Read, Update, Delete) functionality in Laravel using the features of Orchid.
https://orchid.software
MIT License
138 stars 34 forks source link

Issue with _retrieved_at on resource edit #13

Closed francescomalatesta closed 3 years ago

francescomalatesta commented 3 years ago

Hi,

I am trying the crud package, it's really cool. However, I have an issue while editing a resource. I tried with a blank Laravel project User model. When saving my updates, I get the following error:

SQLSTATE[42S22]: Column not found: 1054 Unknown column '_retrieved_at' in 'field list' (SQL: update `users` set `_retrieved_at` = 2021-01-11T13:18:32.000000Z, `users`.`updated_at` = 2021-01-11 13:20:05 where `id` = 1)

The issue seems to be the parameter in the EditScreen commandBar in "src/Screens/EditScreen.php". Is there something I have to disable I don't know about?

Thanks a lot!

rabol commented 3 years ago

I have the same on an newly created resource

tabuna commented 3 years ago

Hotfix with the release 2.5.1

francescomalatesta commented 3 years ago

Lovely! Thx