T
T
twopizza2015-12-25 22:20:06
Yii
twopizza, 2015-12-25 22:20:06

How to make a case sensitive query in yii2?

To find an entry in yii2 I use the following code:

$response = Response::findOne(['unique_url' => $unique_url]);

But the response is returned case insensitive $unique_url.
How to make a query case sensitive?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Pavlenko, 2015-12-25
@Akdmeh

stackoverflow.com/questions/5629111/how-can-i-make... , namely try:
Translated into Yii2, probably like this:
PS I would be grateful if the Yii code can be shortened a bit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question