How to find a row by a column with a null value?
Does not work:
$criteria->condition = '`seller_id` IS NULL';
$criteria->addCondition('seller_id IS NULL'); $data= MODEL::model()->find($criteria);
tried this? ** seller_id ** is the name of the mapped column in Yii , it may not be the same as the actual column name in your database.
Source: https://habr.com/ru/post/1344238/More articles:Why are the methods - and - outdated for the list? - scalaThe tough question is .net - .netSymfony / Doctrine: fetching data as an object - databaseChange the current animation - iosZend Mailer Error "From the header twice" - emailTrimming text with sed - grepCan C ++ or C99 theoretically be compiled into an equally portable C90? - c ++User Digest Authentication - jqueryHow to use basic HTTP authorization with form authentication in .net applications - authenticationWhat data modeling tools are used by nosql (couchdb) developers? - couchdbAll Articles