fix(installer): seed AssistantPrompt rows with skipAll to bypass beforeSave user-service requirement

The first prod install with v2.10.0 failed silently because saveEntity
invokes beforeSave hooks that require a 'user' service which isn't bound
during the script. Pass skipAll=true so the seed is purely a data insert.

Verified on prod 2026-05-27: all 7 default prompts seeded successfully.
This commit is contained in:
2026-05-27 08:52:55 +00:00
parent 65faf99e11
commit 1d200fc3f6
+4 -1
View File
@@ -72,7 +72,10 @@ class AfterInstall
'content' => $row['content'] ?? '',
'isActive' => true,
]);
$entityManager->saveEntity($entity);
// skipAll bypasses beforeSave hooks that require a logged-in user
// service (install runs without a session) and ACL checks (we're
// seeding firm-wide defaults; no user is implicated).
$entityManager->saveEntity($entity, ['skipAll' => true]);
$created++;
}