-
Notifications
You must be signed in to change notification settings - Fork 52
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
Numeric value out of range: 1416 Cannot get geometry object from data you send to the GEOMETRY field #104
Comments
Can you please fork and add a failing test? |
I'm facing the same issue, here is my temporary solution that you could try
|
Same issue here! |
Guys, I need your help to reproduce this issue. Please add a failing test to the repository, or provide a complete code snippet. |
Sorry for the late response. I've managed to make it work but not by using the setAttribute method. For an alternative approach. Within my model's request class, I created a function called location():
Then, in the controller's store method, I simply call this function to store the geometric value: |
When I try to update my location column trough setAttribute method I get the following error:
Numeric value out of range: 1416 Cannot get geometry object from data you send to the GEOMETRY field
If I update the column with raw sql query everything works fine.
Using Laravel 10.10 & mysql 8.0
The text was updated successfully, but these errors were encountered: