src/Model/BaseModel.php
public static function findActive($orderBy = [], $activeColumn = 'is_active', $activeValue = 1)
    {
        /** @var self $model */
        $model = get_called_class();
        return $model::find()
            ->where([$model::tableName() . '.' . $activeColumn => $activeValue])
            ->orderBy($orderBy);
    }
public static function findActive($orderBy = [], $activeColumn = 'is_active', $activeValue = 1)
    {
        /** @var self $model */
        $model = get_called_class();
        return $model::find()
            ->where([$model::tableName() . '.' . $activeColumn => $activeValue])
            ->orderBy($orderBy);
    }
Gets all active
@author Adeyemi Olaoye <yemi@cottacush.com>
@param array $orderBy
@param string $activeColumn
@param int $activeValue
@return ActiveQuery