Doctrine\ORM\Query\Expr::substring
Creates a SUBSTRING() function expression with the given arguments.
Signature
public function substring(mixed
$x,
[integer
$from = null,
[integer
$len = null]] )
Parameters
$x
— mixed- Argument to be used as string to be cropped by SUBSTRING() function.
$from
— integer- Initial offset to start cropping string. May accept negative values.
$len
— integer- Length of crop. May accept negative values.
Returns
- Func