Add group ID to member
This commit is contained in:
parent
6e04bc2de6
commit
1a685ffd40
|
@ -143,6 +143,7 @@ class Api {
|
|||
$member = collect($member)->mapWithKeys(function($value, $key) {
|
||||
return [ str_replace('entries_', '', $key) => $value ];
|
||||
});
|
||||
$member['gruppierungId'] = $groupId;
|
||||
|
||||
return $member->toArray();
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ class Member extends Model {
|
|||
'konfessionId' => 'confession_id',
|
||||
'geburtsDatum' => 'birthday',
|
||||
'eintrittsdatum' => 'joined_at',
|
||||
'gruppierungId' => 'group_id'
|
||||
];
|
||||
|
||||
protected $casts = [];
|
||||
|
|
|
@ -36,6 +36,7 @@ class PullMemberTest extends TestCase
|
|||
'confession_id' => ['confession_id', [1, null]],
|
||||
'birthday' => ['birthday', ['1991-06-20', '1984-01-17']],
|
||||
'joined_at' => ['joined_at', ['2005-05-01', null]],
|
||||
'group_id' => ['group_id', [103, 103]],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -54,6 +55,7 @@ class PullMemberTest extends TestCase
|
|||
'gender_id' => ['gender_id', [19, null]],
|
||||
'birthday' => ['birthday', ['1991-06-20', '1984-01-17']],
|
||||
'joined_at' => ['joined_at', ['2005-05-01', null]],
|
||||
'group_id' => ['group_id', [103, 103]],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"spitzname": "spitz1",
|
||||
"landId": 1,
|
||||
"staatsangehoerigkeitText": "deutsch",
|
||||
"gruppierungId": 100105,
|
||||
"gruppierungId": 103,
|
||||
"mglTypeId": "MITGLIED",
|
||||
"beitragsart": "Voller Beitrag",
|
||||
"nachname": "Nach1",
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"spitzname": "",
|
||||
"landId": 1,
|
||||
"staatsangehoerigkeitText": "",
|
||||
"gruppierungId": 100105,
|
||||
"gruppierungId": 103,
|
||||
"mglTypeId": "MITGLIED",
|
||||
"beitragsart": "Voller Beitrag",
|
||||
"nachname": "Nach2",
|
||||
|
|
Loading…
Reference in New Issue