How to use regexp in Model::find()
when use command like this
SELECT FROM user
WHERE username regexp 'contest3_.'
I try User::find("username regexp 'contest3_.*'");
it have error.
Syntax error, unexpected token IDENTIFIER(regexp), near to ' 'contest3.'', when parsing: SELECT [PSUOJ\Models\User]. FROM [PSUOJ\Models\User] WHERE username regexp 'contest3.*' (89)