From 94e19e1ac6bdd0332b45e95e802d9009aa122465 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 18 Feb 2015 12:15:46 +0100 Subject: [PATCH] escapedTableName for SQL query easy access --- classes/Managed_DataObject.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/classes/Managed_DataObject.php b/classes/Managed_DataObject.php index a628b8bee3..dc4352270d 100644 --- a/classes/Managed_DataObject.php +++ b/classes/Managed_DataObject.php @@ -299,6 +299,11 @@ abstract class Managed_DataObject extends Memcached_DataObject return $ckeys; } + public function escapedTableName() + { + return common_database_tablename($this->tableName()); + } + /** * Returns an ID, checked that it is set and reasonably valid * -- 2.39.5