Fixed parameters for substr() function
[DoctrineBridge] fixed failing test