Skip to content

Conversation

@dimitriadamou
Copy link

This is a very simple change where it will search the values of $wheres in Appsero\LaravelDatastore\Query\Builder if a key of instance type \Google\Cloud\Datastore\Key is found, we will then return the Entity from Google Datastore then apply the mutations via values.

This also allows for Laravel Models to be updated via $model->save();

E.g.

   $myModel = MyModel::where("abc", $value)->first();
   $myModel->def = "newValue";
   $myModel->save();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant