Global Helpers
escapeForLike()
Signature
Section titled “Signature”escapeForLike() — returns string
Available in: controller, model, mapper, migrator, migration, tabledefinition
Category: String Functions
Description
Section titled “Description”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 _; `
Parameters
Section titled “Parameters”
Name Type Required Default Description valuestringyes — String whose LIKE wildcards should be treated as literals.