Skip to content

Global Helpers

escapeForLike()

escapeForLike() — returns string

Available in: controller, model, mapper, migrator, migration, tabledefinition Category: String Functions

Escapes the LIKE wildcards in a string so it can be used as a literal search term in a LIKE comparison that declares ESCAPE ”. The escape character </code> is escaped first, then % and _; `

NameTypeRequiredDefaultDescription
valuestringyes—String whose LIKE wildcards should be treated as literals.