Commit fed3d650 authored by Guilherme Blanco's avatar Guilherme Blanco

Merge pull request #153 from nomack84/add_notlike_method_to_expressionbuilder

Added ExpressionBuilder::nolike() method
parents 6cda1921 81f5c2fa
...@@ -249,6 +249,19 @@ class ExpressionBuilder ...@@ -249,6 +249,19 @@ class ExpressionBuilder
return $this->comparison($x, 'LIKE', $y); return $this->comparison($x, 'LIKE', $y);
} }
/**
* Creates a NOT LIKE() comparison expression with the given arguments.
*
* @param string $x Field in string format to be inspected by NOT LIKE() comparison.
* @param mixed $y Argument to be used in NOT LIKE() comparison.
*
* @return string
*/
public function notLike($x, $y)
{
return $this->comparison($x, 'NOT LIKE', $y);
}
/** /**
* Creates a IN () comparison expression with the given arguments. * Creates a IN () comparison expression with the given arguments.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment