I am still not sure how it works when it comes to Repositories vs Hooks which come first. as far as i understand the Repositories will be triggered after parent trigger which are the hooks. i am just trying to understand which way is better writing code on hooks or Repositories. i mean when is the best time to write code on Repositories vs best time to write code on using Hooks ?
Any explanation would be appreciated.
For reference i have been using only Hooks so far for most of the work but i am trying to refactor some code and thinking how can use the same structure used by the team in core crm. i just like to keep it clean.
Thanks
Any explanation would be appreciated.
For reference i have been using only Hooks so far for most of the work but i am trying to refactor some code and thinking how can use the same structure used by the team in core crm. i just like to keep it clean.
Thanks
Comment