Commit 8acd53bf authored by Mark Harding's avatar Mark Harding

(chore): If mobile app then return generic urn

1 merge request!221(refactor): support hydrating the first batch of entities
Pipeline #70444247 running with stages
......@@ -118,6 +118,10 @@ class Exportable implements \JsonSerializable
$exported['ownerObj']['guid'] = (string) $exported['ownerObj']['guid'];
}
if (isset($exported['urn']) && isset($_SERVER['HTTP_APP_VERSION'])) {
$exported['urn'] = "urn:entity:{$exported['guid']}";
}
foreach ($this->exceptions as $exception) {
$exported[$exception] = $item->{$exception};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment