Answer the question
In order to leave comments, you need to log in
How to search by field concatenation in Yii2?
There is a request to select users by the full name of the form firstname || ' ' || lastname LIKE '%First Name%
' the first name is stored in two firstname-surname fields.
How to make such a query using builder in Yii2? This option swears
->orFilterWhere(['like', 'firstname || \' \' || lastname', $text]);
column \"firstname || ' ' || lastname\" does not exist
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question