Commit 9378e291 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(fix): Support JSON data on rows

1 merge request!281WIP: (feat): Minds Pro
Pipeline #72337838 passed with stages
in 8 minutes and 44 seconds
......@@ -86,6 +86,9 @@ class Repository
->setUserGuid($row['user_guid']->toInt())
->setDomain($row['domain']);
$valuesEntityJsonData = json_decode($row['json_data'] ?: '{}', true);
// TODO: Set entity data
$response[] = $valuesEntity;
}
......@@ -112,10 +115,15 @@ class Repository
throw new Exception('Invalid user GUID');
}
$cql = "INSERT INTO pro (user_guid, domain) VALUES (?, ?)";
$cql = "INSERT INTO pro (user_guid, domain, json_data) VALUES (?, ?, ?)";
$values = [
new Bigint($values->getUserGuid()),
$values->getDomain(),
json_encode([
'user_guid' => (string) $values->getUserGuid(),
'domain' => $values->getDomain(),
// TODO: Set entity data
]),
];
$prepared = new Custom();
......
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