Happyr\DoctrineSpecification\Spec::eq PHP Method

eq() public static method

public static eq ( $field, $value, $dqlAlias = null )
    public static function eq($field, $value, $dqlAlias = null)
    {
        return new Comparison(Comparison::EQ, $field, $value, $dqlAlias);
    }

Usage Example

 public function getSpec()
 {
     return Spec::orX(Spec::eq('rgbbg', '000000'), Spec::eq('rgbfg', '000000'));
 }