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

EntityHooks are not invoked when using DSL API #1706

Open
Nek-12 opened this issue Mar 19, 2023 · 0 comments
Open

EntityHooks are not invoked when using DSL API #1706

Nek-12 opened this issue Mar 19, 2023 · 0 comments

Comments

@Nek-12
Copy link

Nek-12 commented Mar 19, 2023

I'm using an EntityHook to sign up for changes in the database. When an entry is deleted, I want to create an entry in another table.
My problem is that when I'm using a Table.deleteWhere() clause, EntityHook is not invoked.
The only place where that entity hook is invoked, judging by the source code, is when the delete() method of the entity is called
(Entity.kt line 249)

I want to listen to changes on any operation on a given table. How can I do this without using database triggers?

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

1 participant