having()


Having(), andHaving() или orHaving()

$query->having(['status' => 1]);

$query->having(['status' => 1])
    ->andHaving(['>', 'age', 30]);