core/model/modx/mysql/modcontextsetting.map.inc.php
<?php
/**
* @package modx
* @subpackage mysql
*/
$xpdo_meta_map['modContextSetting']= array (
'package' => 'modx',
'version' => '1.1',
'table' => 'context_setting',
'extends' => 'xPDOObject',
'tableMeta' =>
array (
'engine' => 'InnoDB',
),
'fields' =>
array (
'context_key' => NULL,
'key' => NULL,
'value' => NULL,
'xtype' => 'textfield',
'namespace' => 'core',
'area' => '',
'editedon' => NULL,
),
'fieldMeta' =>
array (
'context_key' =>
array (
'dbtype' => 'varchar',
'precision' => '191',
'phptype' => 'string',
'null' => false,
'index' => 'pk',
),
'key' =>
array (
'dbtype' => 'varchar',
'precision' => '50',
'phptype' => 'string',
'null' => false,
'index' => 'pk',
),
'value' =>
array (
'dbtype' => 'mediumtext',
'phptype' => 'string',
),
'xtype' =>
array (
'dbtype' => 'varchar',
'precision' => '75',
'phptype' => 'string',
'null' => false,
'default' => 'textfield',
),
'namespace' =>
array (
'dbtype' => 'varchar',
'precision' => '40',
'phptype' => 'string',
'null' => false,
'default' => 'core',
),
'area' =>
array (
'dbtype' => 'varchar',
'precision' => '191',
'phptype' => 'string',
'null' => false,
'default' => '',
),
'editedon' =>
array (
'dbtype' => 'timestamp',
'phptype' => 'timestamp',
'null' => true,
'default' => NULL,
'attributes' => 'ON UPDATE CURRENT_TIMESTAMP',
),
),
'indexes' =>
array (
'PRIMARY' =>
array (
'alias' => 'PRIMARY',
'primary' => true,
'unique' => true,
'columns' =>
array (
'context_key' =>
array (
'collation' => 'A',
'null' => false,
),
'key' =>
array (
'collation' => 'A',
'null' => false,
),
),
),
),
'aggregates' =>
array (
'Context' =>
array (
'class' => 'modContext',
'key' => 'context_key',
'local' => 'context_key',
'foreign' => 'key',
'cardinality' => 'one',
'owner' => 'foreign',
),
'SystemSetting' =>
array (
'class' => 'modSystemSetting',
'key' => 'key',
'local' => 'key',
'foreign' => 'key',
'cardinality' => 'one',
'owner' => 'foreign',
),
),
);