Hi,
I am trying to create a custom TypeOrmCrudService for my application, overriding the behaviour of the different methods...
To do this, I am basing my override methods on the current implementations on TypeOrmCrudService. Thing is, there is a lot of really useful methods on the base class (ex getOneOrFail(), prepareEntityBeforeSave(), etc) , but I cannot use them on my override method, because they have private visibility...
Would it be possible to make those methods protected instead, to be able to call them from derived classes? Or do you feel this would make the interface harder to maintain? If not, what would be a good way to be able to use those methods?
Thanks,
Hi,
I am trying to create a custom TypeOrmCrudService for my application, overriding the behaviour of the different methods...
To do this, I am basing my override methods on the current implementations on TypeOrmCrudService. Thing is, there is a lot of really useful methods on the base class (ex getOneOrFail(), prepareEntityBeforeSave(), etc) , but I cannot use them on my override method, because they have private visibility...
Would it be possible to make those methods protected instead, to be able to call them from derived classes? Or do you feel this would make the interface harder to maintain? If not, what would be a good way to be able to use those methods?
Thanks,