Commit b1465a75 authored by mmn's avatar mmn

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

parent 6f4c5723
...@@ -87,9 +87,7 @@ abstract class Managed_DataObject extends Memcached_DataObject ...@@ -87,9 +87,7 @@ abstract class Managed_DataObject extends Memcached_DataObject
*/ */
function table() function table()
{ {
// Hack for PHP 5.2 not supporting late static binding $table = static::schemaDef();
//$table = static::schemaDef();
$table = call_user_func(array(get_class($this), 'schemaDef'));
return array_map(array($this, 'columnBitmap'), $table['fields']); 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