Ouzo\Restriction\RegexpRestriction::toSql PHP Method

toSql() public method

public toSql ( $fieldName )
    public function toSql($fieldName)
    {
        $dialect = DialectFactory::create();
        $regexpMatcher = $dialect->regexpMatcher();
        return $fieldName . ' ' . $regexpMatcher . ' ?';
    }
RegexpRestriction