I have a table which has a field `activated_at` timestamp NULL DEFAULT NULL
, which means that it can contain a timestamp or it can be null
and it\'s
If i understand right you can use andWhere
->andWhere(['not', ['activated_at' => null]])
but andFilterWhere in execute where the related value is not null
from doc http://www.yiiframework.com/doc-2.0/yii-db-query.html
andFilterWhere() Adds an additional WHERE condition to the existing one but ignores empty operands.