From 1f4b168e69c49931be086c9b6519fab64773c2e1 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 7 Oct 2010 14:21:06 -0700 Subject: [PATCH] tweak for Managed_DataObject table defs --- classes/Managed_DataObject.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/Managed_DataObject.php b/classes/Managed_DataObject.php index 162c3c81f0..35d52c5120 100644 --- a/classes/Managed_DataObject.php +++ b/classes/Managed_DataObject.php @@ -38,7 +38,9 @@ abstract class Managed_DataObject extends Memcached_DataObject */ function table() { - $table = self::schemaDef(); + // Hack for PHP 5.2 not supporting late static binding + //$table = static::schemaDef(); + $table = call_user_func(array(get_class($this), 'schemaDef')); return array_map(array($this, 'columnBitmap'), $table['fields']); } -- 2.39.5