Hello,
Right now you can overwrite a built in Service with an extension:
But you can't do this with a Repository. Looking at the difference between RepositoryFactory and ServiceFactory the main difference I can see is that Espo supports overwriting Repositories via custom/Espo/Custom/Repositores, but not via an extension.
Why is that? Would there be any interest in allowing this?
I want to package up an extension which not only extends a built in type, but modifies it's beforeSave logic.
Right now you can overwrite a built in Service with an extension:
But you can't do this with a Repository. Looking at the difference between RepositoryFactory and ServiceFactory the main difference I can see is that Espo supports overwriting Repositories via custom/Espo/Custom/Repositores, but not via an extension.
Why is that? Would there be any interest in allowing this?
I want to package up an extension which not only extends a built in type, but modifies it's beforeSave logic.
Comment