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

Reset where clause in updater #419

Open
sgrekov opened this issue Jun 2, 2017 · 2 comments
Open

Reset where clause in updater #419

sgrekov opened this issue Jun 2, 2017 · 2 comments

Comments

@sgrekov
Copy link

sgrekov commented Jun 2, 2017

Is there a way to reset whereClause in _Updater? I.g. I want reuse updater with different model instances, but where() method alway concatenate to one big WHERE clause

@gfx
Copy link
Member

gfx commented Jun 3, 2017

Why and how do you want to reuse *_Updater? Do you have an example code that shows the reuse is useful?

@sgrekov
Copy link
Author

sgrekov commented Jun 5, 2017

We have a different lists of entities, mixed with cached ones and fresh ones, and on some of them we want to execute insert, or on some of them update, and we don't want to create updater for each item.

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

No branches or pull requests

2 participants