Last active
November 4, 2023 09:42
-
-
Save tguruslan/9f2b5eb87c8fe821afee7cbb8fa4cc6c to your computer and use it in GitHub Desktop.
yii2 or activequery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$query->andFilterWhere(['OR', ['is', $key, new \yii\db\Expression('null')], ['<=','LENGTH('.$key.')',0]])->all(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment