Hi everyone!
Here is my problem:
We changed DB from MySQL to MariaDB. The User model has attribute 'date' (type - timestamp). Before the changing of DB the column had default value '0000-00-00 00:00:00'. I made a migration and remove default value at all.
And when I try to save the user data in DB via model ($user->save()) I get an exception 'SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column date
'.
I don't know why it happened. The user has null value for the 'date' column. I tried to set null, tried to set current date - i still get the exception.
What can it be?
P.S.
I see the value '0000-00-00 00:00:00' in snapshot data, but I don't know what it is "snapshot data".