diff --git a/app/src/Command/SetupCommand.php b/app/src/Command/SetupCommand.php index ee80da1ad..c6845e434 100644 --- a/app/src/Command/SetupCommand.php +++ b/app/src/Command/SetupCommand.php @@ -160,7 +160,7 @@ public function execute(Arguments $args, ConsoleIo $io) $person->person_roles = [$coTable->People->PersonRoles->newEntity([ 'affiliation_type_id' => $coTable->Types->getTypeId(coId: $co_id, - attribute: 'PersonRoles.affiliation', + attribute: 'PersonRoles.affiliation_type', value: 'staff'), 'title' => __d('command', 'se.person_role.title'), 'status' => SuspendableStatusEnum::Active