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

This commit is contained in:
Mikael Nordfeldth 2013-08-20 09:43:51 +02:00
parent 6f4c572389
commit b1465a7559

View File

@ -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']);
}