public function export()
{
$attributes = array_merge(get_object_vars($this), $this->attributes);
if (isset($attributes['attributeTypes'])) {
unset($attributes['attributeTypes']);
}
// Schema is an object.
unset($attributes['schema']);
return array('name' => $this->name, 'attributes' => $attributes);
}