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

Make the receipt_id custom field in receipt items an EntityRef field #176

Open
jensschuppe opened this issue Sep 19, 2023 · 0 comments
Open

Comments

@jensschuppe
Copy link
Collaborator

jensschuppe commented Sep 19, 2023

Follow-up to #172 - for full compatibility with SearchKit, this field referencing a receipt from a receipt item should become an EntityRef field for implicit FK constraints and JOINs.

This is not actually necessary for adjusting Donation Receipt views to SearchKit, rather a nice-to-have.

Notice by @colemanw:

Should be simple enough - just one word of caution. EntityRef fields get a real foreign-key-constraint in the database. So they must contain only valid foreign key references. Since the field currently has no constraint, it could be corrupted as easily as the referenced entity being deleted.

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

No branches or pull requests

1 participant