Closed tzyganu closed 3 years ago
This has already been added in https://github.com/magento/magento2/commit/734a43f3ac1a684c60e665009cb5aa7f55d29cf3 and released in 2.3.2
@BarryBadpak 2.5h before I posted this. :+1: Someone can see the future. Nice
Moved here from magento/Magento2#20603: As a developer I cannot add a condition to a collection for
NOT FIND_IN_SET
in the regular way withaddAttributeToFilter
oraddFieldToFilter
becauseMagento\Framework\DB\Adapter\Pdo\Mysql::prepareSqlCondition
does not contain a map item for NOT FIND_IN_SET. I always have to do withZend_Expr
approach which is not that "pretty".Possible solution
Add a new map item in the $conditionKeyMap array from the method mentioned above: