-
Notifications
You must be signed in to change notification settings - Fork 315
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
Fixes geometry values on created event #71
base: master
Are you sure you want to change the base?
Conversation
@grimzy Any idea why the tests fail, looking at it, it might be that model events do not work in tests. I'm trying to run the tests locally but I get |
Updated event is fired before saved. So to make this work on observers observing the updated event we need to invoke on the updated event instead of the saved event.
@Dylan-DutchAndBold : thank you for the PR. Regarding tests, maybe this will help: https://laravel.com/docs/5.7/mocking#event-fake |
This PR is absolutely needed! I've tested it in my project and it perfectly solved the geometries issues on save/create events. For now to implement this I've extended SpatialTrait to create a custom one with this PR's change into its bootTrait method |
See issue #70