Skip to content
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

Add geometry update support #101

Merged
merged 2 commits into from
Jul 4, 2018
Merged

Add geometry update support #101

merged 2 commits into from
Jul 4, 2018

Conversation

luizguilhermefr
Copy link
Contributor

@luizguilhermefr luizguilhermefr commented Jul 4, 2018

Unfortunately, I still didn't find a way to support update on multiple models, as I cannot access getPostgisType() from a bulk Builder. However, I was able to add support to single model update.

Example:

$model = PostgisModel::find($id)
$model->point = new Point($x, $y);
$model->save();

Tests are passing, please let me know if something is missing.

Fixes #100

@njbarrett
Copy link
Collaborator

Thanks for your time on this, I believe it's an improvement even without the multiple model support currently.

@njbarrett njbarrett merged commit 7c2b8cf into mstaack:master Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants