Add labels to membership
This commit is contained in:
parent
2a1c90ebce
commit
a73784e554
|
@ -14,7 +14,9 @@ class Membership extends Model {
|
||||||
'taetigkeitId' => 'activity_id',
|
'taetigkeitId' => 'activity_id',
|
||||||
'untergliederungId' => 'subactivity_id',
|
'untergliederungId' => 'subactivity_id',
|
||||||
'aktivVon' => 'starts_at',
|
'aktivVon' => 'starts_at',
|
||||||
'aktivBis' => 'ends_at'
|
'aktivBis' => 'ends_at',
|
||||||
|
'taetigkeit' => 'activity_name',
|
||||||
|
'untergliederung' => 'subactivity_name'
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $casts = [];
|
protected $casts = [];
|
||||||
|
|
|
@ -19,7 +19,9 @@ class PullMembershipsTest extends TestCase
|
||||||
'activity_id' => ['activity_id', [33, 34]],
|
'activity_id' => ['activity_id', [33, 34]],
|
||||||
'subactivity_id' => ['subactivity_id', [55, 56]],
|
'subactivity_id' => ['subactivity_id', [55, 56]],
|
||||||
'starts_at' => ['starts_at', ['2017-02-11', '2017-11-12']],
|
'starts_at' => ['starts_at', ['2017-02-11', '2017-11-12']],
|
||||||
'ends_at' => ['ends_at', ['2017-03-11', null]]
|
'ends_at' => ['ends_at', ['2017-03-11', null]],
|
||||||
|
'activity_name' => ['activity_name', ['ReferentIn', 'Wö']],
|
||||||
|
'subactivity_name' => ['subactivity_name', ['Pfadfinder', 'AAA']],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"id": 68,
|
"id": 68,
|
||||||
"gruppierung": "Diözesanleitung Köln 100000",
|
"gruppierung": "Diözesanleitung Köln 100000",
|
||||||
"gruppierungId": 103,
|
"gruppierungId": 103,
|
||||||
"taetigkeit": "€ ReferentIn",
|
"taetigkeit": "ReferentIn",
|
||||||
"taetigkeitId": 33,
|
"taetigkeitId": 33,
|
||||||
"untergliederung": "Pfadfinder",
|
"untergliederung": "Pfadfinder",
|
||||||
"untergliederungId": 55,
|
"untergliederungId": 55,
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
"id": 69,
|
"id": 69,
|
||||||
"gruppierung": "Diözesanleitung Köln 100000",
|
"gruppierung": "Diözesanleitung Köln 100000",
|
||||||
"gruppierungId": 104,
|
"gruppierungId": 104,
|
||||||
"taetigkeit": "€ ReferentIn",
|
"taetigkeit": "Wö",
|
||||||
"taetigkeitId": 34,
|
"taetigkeitId": 34,
|
||||||
"untergliederung": "Pfadfinder",
|
"untergliederung": "AAA",
|
||||||
"untergliederungId": 56,
|
"untergliederungId": 56,
|
||||||
"aktivVon": "2017-11-12 00:00:00",
|
"aktivVon": "2017-11-12 00:00:00",
|
||||||
"aktivBis": ""
|
"aktivBis": ""
|
||||||
|
|
Loading…
Reference in New Issue