From 2bef8bafd18affc79cb82de7fa23fef4b3e2fbd0 Mon Sep 17 00:00:00 2001 From: Phil Young Date: Fri, 15 Jul 2022 16:07:37 +0100 Subject: [PATCH] Fix Record Client Entity Hydration This will now map in the priority. It should be updated to use the new mapping method in the future to avoid this --- src/SafeDNS/RecordClient.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/SafeDNS/RecordClient.php b/src/SafeDNS/RecordClient.php index 2ac832e4..476bff4f 100644 --- a/src/SafeDNS/RecordClient.php +++ b/src/SafeDNS/RecordClient.php @@ -124,12 +124,13 @@ public function destroy(Record $record) public function loadEntity($data) { return new Record([ - 'id' => $data->id, - 'zone' => $data->zone, - 'name' => $data->name, - 'type' => $data->type, - 'content' => $data->content, - 'ttl' => $data->ttl, + 'id' => $data->id, + 'zone' => $data->zone, + 'name' => $data->name, + 'type' => $data->type, + 'content' => $data->content, + 'ttl' => $data->ttl, + 'priority' => $data->priority, ]); } }