sbj
Well-known member
Hello,
bear with me as I am not a developer. I am trying to modify an existing addon (it is out of the scope of the support) and need help using the correct finder.
From what I understand this is a SQL statement
equivalent to this code:
How can I modify this into:
I want the finder ignoring hyphens. As raw SQL I think the above query would work, but I don't know how to do that for the finder.
Any help is appreciated. Thank you.
bear with me as I am not a developer. I am trying to modify an existing addon (it is out of the scope of the support) and need help using the correct finder.
From what I understand this is a SQL statement
SELECT * FROM some_table_name WHERE title LIKE '%?%'
equivalent to this code:
PHP:
$threads = $finder
->where('title', 'LIKE', $finder->escapeLike($threadTitle, '%?%'))
How can I modify this into:
SELECT * FROM ... WHERE REPLACE(title, '-', '') LIKE '%?%'
I want the finder ignoring hyphens. As raw SQL I think the above query would work, but I don't know how to do that for the finder.
Any help is appreciated. Thank you.
Last edited: