alias('a') ->join(['auth_group'=>'g'],'a.uid') ->value('g.name'); if($name){ return $name; } return false; } }