public static function getByName($gName)
    {
        $db = Database::connection();
        $row = $db->fetchAssoc('select * from ' . $db->getDatabasePlatform()->quoteSingleIdentifier('Groups') . ' where gName = ?', [$gName]);
        if ($row) {
            $g = new static();
            $g->setPropertiesFromArray($row);

            return $g;
        }
    }