We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit b1465a75 authored by mattl's avatar mattl

We can now do late static binding (PHP >= 5.3)

parent 6f4c5723
......@@ -87,9 +87,7 @@ abstract class Managed_DataObject extends Memcached_DataObject
function table()
// Hack for PHP 5.2 not supporting late static binding
//$table = static::schemaDef();
$table = call_user_func(array(get_class($this), 'schemaDef'));
$table = static::schemaDef();
return array_map(array($this, 'columnBitmap'), $table['fields']);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment