From 85038ca07c9909eb6503d5b0e529a2cc080d2a06 Mon Sep 17 00:00:00 2001 From: winter Date: Tue, 14 Jan 2025 21:39:11 +0000 Subject: fix bugs in note federation --- Digitigrade/Model.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Digitigrade/Model.php') diff --git a/Digitigrade/Model.php b/Digitigrade/Model.php index be664cb..71cfa5c 100644 --- a/Digitigrade/Model.php +++ b/Digitigrade/Model.php @@ -287,4 +287,12 @@ abstract class Model { $db->exec("DELETE FROM $tableName WHERE $where"); } + + /** + * Converts the model to an opaque string, to be used for equality checking or debugging purposes only. + * @return string + */ + public function __tostring(): string { + return 'getUpdateWhereClause(Db::getInstance()->getPdo()) . ']>'; + } } \ No newline at end of file -- cgit v1.3