Skip to content

Option "Saving via Eloquent Model" #21

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

Merged
merged 9 commits into from
May 26, 2023
Merged

Conversation

evgeek
Copy link
Collaborator

@evgeek evgeek commented May 25, 2023

The resulting data can now be saved to the database via Eloquent Models. This allows to work with model events.
To achieve this, change the table_sync.receive.message_configs key 'table' => 'some_table' to 'model' => SomeModel::class.

Breaking changes

  • The Umbrellio\TableSync\Integration\Laravel\Receive\Upserter\Upserter and Umbrellio\TableSync\Integration\Laravel\Receive\Destroyer classes is gone. Use Umbrellio\TableSync\Integration\Laravel\Receive\Savers\QuerySaver or Umbrellio\TableSync\Integration\Laravel\Receive\Savers\EloquentSaver instead.
  • Umbrellio\TableSync\Integration\Laravel\Receive\Upserter namespace renamed to Umbrellio\TableSync\Integration\Laravel\Receive\Savers\ConflictResolvers.

@pvsaintpe pvsaintpe merged commit 4770e96 into master May 26, 2023
@pvsaintpe pvsaintpe deleted the receive-by-model-option branch May 26, 2023 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants