Skip to content

Commit 2bef8ba

Browse files
authored
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
1 parent 72b4fa1 commit 2bef8ba

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/SafeDNS/RecordClient.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,13 @@ public function destroy(Record $record)
124124
public function loadEntity($data)
125125
{
126126
return new Record([
127-
'id' => $data->id,
128-
'zone' => $data->zone,
129-
'name' => $data->name,
130-
'type' => $data->type,
131-
'content' => $data->content,
132-
'ttl' => $data->ttl,
127+
'id' => $data->id,
128+
'zone' => $data->zone,
129+
'name' => $data->name,
130+
'type' => $data->type,
131+
'content' => $data->content,
132+
'ttl' => $data->ttl,
133+
'priority' => $data->priority,
133134
]);
134135
}
135136
}

0 commit comments

Comments
 (0)