We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 129ccf5 + 5f0f4d5 commit 242ba3fCopy full SHA for 242ba3f
src/TgDatabase/Database.php
@@ -304,6 +304,7 @@ public function prepareValue($value) {
304
$rc = $value;
305
if (is_object($value)) {
306
if (get_class($value) == 'TgUtils\\Date') $rc = $this->quote($value->toMysql(true));
307
+ else if (is_a('TgUtils\\SelfJsonEncoder')) $rc = $this->quote($value->json_encode());
308
else $rc = $this->quote(json_encode($value));
309
} else if (is_array($value)) {
310
$rc = $this->quote(json_encode($value));
0 commit comments