Return gruppierungId and id

This commit is contained in:
philipp lang 2021-06-13 11:24:52 +02:00
parent 5da024f7ef
commit b3368fbd34
3 changed files with 5 additions and 1 deletions

View File

@ -74,6 +74,8 @@ class Member extends Model {
'nachname' => $this->lastname, 'nachname' => $this->lastname,
'spitzname' => $this->nickname ?: '', 'spitzname' => $this->nickname ?: '',
'geschlechtId' => $this->gender_id ?: Gender::getNullValue(), 'geschlechtId' => $this->gender_id ?: Gender::getNullValue(),
'gruppierungId' => $this->group_id,
'id' => $this->id,
]; ];
} }

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Zoomyboy\LaravelNami; namespace Zoomyboy\LaravelNami\Providers;
use Cache; use Cache;
use Illuminate\Contracts\Auth\UserProvider; use Illuminate\Contracts\Auth\UserProvider;

View File

@ -41,6 +41,8 @@ class PushMemberTest extends TestCase
'lastname' => ['nachname', ['Nach1', 'Nach2']], 'lastname' => ['nachname', ['Nach1', 'Nach2']],
'nickname' => ['spitzname', ['spitz1', '']], 'nickname' => ['spitzname', ['spitz1', '']],
'gender_id' => ['geschlechtId', [17, 23]], 'gender_id' => ['geschlechtId', [17, 23]],
'group_id' => ['gruppierungId', [103, 103]],
'nami_id' => ['id', [16, 17]],
/* /*
'other_country' => ['other_country', ['deutsch', null]], 'other_country' => ['other_country', ['deutsch', null]],
'address' => ['address', ['straße 1', 'straße 2']], 'address' => ['address', ['straße 1', 'straße 2']],