for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mdiyakov\DoctrineSolrBundle\Filter\Field;
class EntityFieldEqualFilter extends EntityFieldFilter
{
/**
* @param mixed $value
* @return bool
*/
protected function validate($value)
return $value === $this->getEntityFieldValue();
}
* @return string
public function getErrorMessage()
return sprintf('The value of %s is not equal to %s', $this->getEntityFieldName(), (string) $this->getEntityFieldValue());
public function getSupportedOperator()
return '=';