public static function find() { return parent::find()->where([Transaction::tableName() . '.isdel' => 0]); }
public function getTags() { $models = Transaction::find()->all(); $tags = []; foreach ($models as $m) { $ts = explode(",", $m->tags); foreach ($ts as $t) { if (!in_array($t, $tags)) { $tags[$t] = $t; } } } return $tags; }