- Notifications
You must be signed in to change notification settings - Fork330
Fixes geometry values on created event#71
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
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 |
grimzy commentedMar 9, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
RomainMazB commentedFeb 11, 2021
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