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(templates): ignoreing the primary key when patching #72

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

Jacobbrewer1
Copy link
Owner

Describe your changes

This pull request involves a change to the Patch method in the templates/model.tmpl file. The change adds a feature to ignore certain fields during the patch operation.

Changes to Patch Method:

  • templates/model.tmpl: Added patcher.WithIgnoredFields to the Patch method to specify which fields should be ignored during the patch operation. This ensures that primary key fields are not updated.

@Jacobbrewer1 Jacobbrewer1 enabled auto-merge (squash) January 30, 2025 14:10
@Jacobbrewer1 Jacobbrewer1 merged commit 53f31d0 into main Jan 30, 2025
5 checks passed
@Jacobbrewer1 Jacobbrewer1 deleted the fix/patch-template branch January 30, 2025 14:12
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