Closed Sebastian-Habiger closed 5 years ago
I think it was only intended for two parameter types; string and array. Compare with the DocBlock:
The problem is that the setExclude
method does not validate the value of the parameter.
Thank you, you are right, my fault. I was sure I read somewhere in the documentation that a where is allowed. Using a string instead of a Where is the solution.
As in line 300 of Zend\Validator\Db\AbstractDb the Where gets overridden the field to be checked gets lost. Changing this line to
will fix the issue. But should that Where not be inverted?