cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 override resource model collection

Magento 2 override resource model collection

Hi at all,

I have a small problem with overwrite a resource model collection. I am trying to rewrite the class:

 

Magento\Newsletter\Model\ResourceModel\Queue\Collection

I tried it in the way like overwriting models, blocks and controllers. So I created my class in my module. Extended the class with the class to overwrite and added my function to my new class. After this I added the "preference" setting to my di.xml but my class is never called.

 

So, is there another way to overwrite resource model collections?!?!

 

Thanks a lot!  

Tags (2)
1 REPLY

Re: Magento 2 override resource model collection

Hello @Hannekum, have you found any solution for this issue. If yes, then please do share, even I am facing the same issue