Drop transaction_type_id, rename transaction_type #2483

This commit is contained in:
James Cole
2019-08-25 16:13:47 +02:00
parent 5d68fab374
commit 1f9fddaa32

View File

@@ -97,8 +97,7 @@ class RecurrenceTransformer extends AbstractTransformer
'id' => (int)$recurrence->id,
'created_at' => $recurrence->created_at->toAtomString(),
'updated_at' => $recurrence->updated_at->toAtomString(),
'transaction_type_id' => $recurrence->transaction_type_id,
'transaction_type' => $shortType,
'type' => $shortType,
'title' => $recurrence->title,
'description' => $recurrence->description,
'first_date' => $recurrence->first_date->format('Y-m-d'),