-
Notifications
You must be signed in to change notification settings - Fork 916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Regression with auto casting and spatie/laravel-translation #3710
Comments
Hello @kenjilabs I think your problem is having the column in the casts. The docs says that you are going to make it translatable you should remove it from casts. I still investigating the other issue, I could not reproduce in L8, I suspect it's a L6 problem. Best, |
Hello @bastos71 Thanks for the report, but could it be possible that the problem you are having is the same as @kenjilabs ? If not please do as @kenjilabs did and post your model definition and your field definitions. ### PHP VERSION:
PHP 7.4.19 (cli) (built: May 4 2021 14:24:38) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
### LARAVEL VERSION:
v6.20.33@49aa211f2dd1d419bfd9dbbd6f590d57a1dfda58
### BACKPACK VERSION:
4.1.51@756173cf6593c3d530fca0e54831763c796e24d8 I downgraded Laravel to 6 and still could not reproduce your issue. Let me know if I missed something. Best, |
Hey guys, Since we couldn't reproduce this and it's got no activity in the past months, I'm going to assume it's a non-issue and close it. @kenjilabs - if I'm mistaken (which I often am) please reply to Pedro's question above so we can reproduce the issue and we'll reopen. Also - sorry for the delayed response, must have slipped through the cracks... Cheers! |
Bug report
What I did
Encountered a regression similar to #2880, I could not simply save my translations in database, values where set to
null
What I expected to happen
Translations saved in database.
What happened
Translations saved as
null
Workaround to fix
Create your own
HasTransaltions
Trait that overridesgetCasts
method already overrided by Spatie's package, keeping the original one :Backpack, Laravel, PHP, DB version
The text was updated successfully, but these errors were encountered: