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

fix: remove _refresh call from create object process #773

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

nikophil
Copy link
Member

@nikophil nikophil commented Jan 2, 2025

_refresh() internally recomputes EM's changeset, and it has side effects in the UoW and can sometimes lead to unexpected behaviors. I'd prefer not to use it when creating objects.

@nikophil nikophil force-pushed the fix/remove-refresh-from-create branch from 1fa4d73 to a16634c Compare January 2, 2025 17:30
@nikophil nikophil force-pushed the fix/remove-refresh-from-create branch from a16634c to c2a5ea9 Compare January 2, 2025 17:43
@nikophil nikophil merged commit f303f3f into zenstruck:2.x Jan 2, 2025
71 checks passed
@nikophil nikophil deleted the fix/remove-refresh-from-create branch January 2, 2025 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant