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:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user