I'm developing a module for Magento 2, but when trying to create a GRID, my filters are not working.

I have some settings in other class and load it to the collection, using it inside the _initSelect() function.

When I try to use the values from my other class the filters do not work, but if I set them manually in the _initSelect function, they work.

Here is an example:

enter image description here

If I to a echo $this->getSelect()->assemble; the result is exactly the same both ways.

Anyone ever dealt with the problem before? If anyone is interested, here is the link to the module github: https://github.com/moloni/magento2/blob/devel/Model/ResourceModel/Orders/Collection.php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.