public function actual($date)
{
return
$this->alias('t')
->joinWith(['lesson l' => function($q){
$q->joinWith('studio s');
}])
->andWhere(['l.active' => 1])
->andWhere(['s.active' => 1])
->andWhere(['t.date' => $date])
->all();
}