Doctrine\DBAL\Platforms\AbstractPlatform::getBetweenExpression
Returns SQL that checks if an expression evaluates to a value between two values.
The parameter $expression is checked if it is between $value1 and $value2. Note: There is a slight difference in the way BETWEEN works on some databases. http://www.w3schools.com/sql/sql_between.asp. If you want complete database independence you should avoid using between().
Signature
public function getBetweenExpression(string
$expression,
string
$value1,
string
$value2 )
Parameters
$expression
— string- the value to compare to
$value1
— string- the lower value to compare with
$value2
— string- the higher value to compare with
Returns
- string
- logical expression