public function getTeam(){
return $this->hasMany(self::className(), ['team_id'=>'id'], function($query){exit(123);
$query->andWhere(['team_status'=>self::STATUS_TEAM_APPROVED]);
});
}
function($query){ exit(123); $query->andWhere(['team_status'=>self::STATUS_TEAM_APPROVED]); }