Yii condition <IS NULL>
17,283
$criteria->addCondition('seller_id IS NULL');
$data= MODEL::model()->find($criteria);
tried this? **seller_id** is the mapped column name in Yii, it may not be same as the actual column name in your database.
Author by
Joeeee
Updated on June 04, 2022Comments
-
Joeeee almost 2 years
How to find row by column with null value?
It doesn't work:
$criteria->condition = '`seller_id` IS NULL';