Closed akmalhazim closed 3 years ago
Hi!
It's not domain responsibility to manage it. It should be on the repository layer. ORM is considered a repository layer. You can use databases with/without ORM in repository layer.
I'm closing this issue. Thanks!
Hello, May I know how to add hooks to our domain struct? Considering it is swappable, how can I add a hook to any of the domain struct for example using BeforeCreate (gorm hook). Thank you