You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$registrationCategoryNameConfig = $this->connection->fetchAssociative('SELECT * FROM configuration WHERE name = :registration_category_name', ['registration_category_name' => 'registration_category_name']);
$selfRegistrationCategories = $this->connection->fetchAllAssociative('SELECT * FROM team_category WHERE allow_self_registration = 1 ORDER BY sortorder');
61
56
62
57
$this->warnIf(
63
58
count($selfRegistrationCategories) > 1,
64
59
sprintf('Team categories for self-registered teams were %s. Only first will be kept.',
65
60
implode(', ', array_map(function($category) {
66
-
return$category->getName();
61
+
return$category['name'];
67
62
}, $selfRegistrationCategories)))
68
63
);
69
64
70
65
$this->addSql(
71
66
"INSERT INTO configuration (name, value) VALUES ('registration_category_name', :value)",
0 commit comments