public static function getTagGroupByUid(string $uid): TagGroup
    {
        $query = TagGroup::find();
        $query->andWhere(['uid' => $uid]);
        return $query->one() ?? new TagGroup();
    }
public static function getTagGroupByUid(string $uid): TagGroup
    {
        $query = TagGroup::find();
        $query->andWhere(['uid' => $uid]);
        return $query->one() ?? new TagGroup();
    }
public static function getTagGroupByUid ( string $ uid ) : TagGroup { $ query = TagGroup :: find ( ) ; $ query -> andWhere ( [ 'uid' => $ uid ] ) ; return $ query -> one ( ) ?? new TagGroup ( ) ; }
Get a tag record by uid
Get a tag record by uid