]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
tweak for Managed_DataObject table defs
authorBrion Vibber <brion@pobox.com>
Thu, 7 Oct 2010 21:21:06 +0000 (14:21 -0700)
committerBrion Vibber <brion@pobox.com>
Thu, 7 Oct 2010 21:21:06 +0000 (14:21 -0700)
classes/Managed_DataObject.php

index 162c3c81f02dd68008d63876f7eddc84bc90b456..35d52c51208f6949c31672d3d18dbc175d06949b 100644 (file)
@@ -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']);
     }