diff --git a/core/components/fred/elements/plugins/Fred.php b/core/components/fred/elements/plugins/Fred.php index 8c7f0820..c591476c 100644 --- a/core/components/fred/elements/plugins/Fred.php +++ b/core/components/fred/elements/plugins/Fred.php @@ -1,5 +1,4 @@ run(); } else { $modx->log(\xPDO::LOG_LEVEL_ERROR, "Class {$class} not found"); -} +} \ No newline at end of file diff --git a/core/components/fred/src/Model/metadata.mysql.php b/core/components/fred/src/Model/metadata.mysql.php index 07f3c664..66a61411 100644 --- a/core/components/fred/src/Model/metadata.mysql.php +++ b/core/components/fred/src/Model/metadata.mysql.php @@ -1,29 +1,28 @@ '3.0', 'namespace' => 'Fred\\Model', 'namespacePrefix' => 'Fred', - 'class_map' => - [ - 'xPDO\\Om\\xPDOSimpleObject' => - [ - 0 => 'Fred\\Model\\FredBlueprintCategory', - 1 => 'Fred\\Model\\FredBlueprint', - 2 => 'Fred\\Model\\FredElementCategory', - 3 => 'Fred\\Model\\FredElementOptionSet', - 4 => 'Fred\\Model\\FredElementRTEConfig', - 5 => 'Fred\\Model\\FredElement', - 6 => 'Fred\\Model\\FredTheme', - ], - 'xPDO\\Om\\xPDOObject' => - [ - 0 => 'Fred\\Model\\FredThemedTemplate', - 1 => 'Fred\\Model\\FredCache', - 2 => 'Fred\\Model\\FredElementCategoryTemplateAccess', - 3 => 'Fred\\Model\\FredElementTemplateAccess', - 4 => 'Fred\\Model\\FredBlueprintCategoryTemplateAccess', - 5 => 'Fred\\Model\\FredBlueprintTemplateAccess', - ], - ], -]; + 'class_map' => + array ( + 'xPDO\\Om\\xPDOSimpleObject' => + array ( + 0 => 'Fred\\Model\\FredBlueprintCategory', + 1 => 'Fred\\Model\\FredBlueprint', + 2 => 'Fred\\Model\\FredElementCategory', + 3 => 'Fred\\Model\\FredElementOptionSet', + 4 => 'Fred\\Model\\FredElementRTEConfig', + 5 => 'Fred\\Model\\FredElement', + 6 => 'Fred\\Model\\FredTheme', + ), + 'xPDO\\Om\\xPDOObject' => + array ( + 0 => 'Fred\\Model\\FredThemedTemplate', + 1 => 'Fred\\Model\\FredCache', + 2 => 'Fred\\Model\\FredElementCategoryTemplateAccess', + 3 => 'Fred\\Model\\FredElementTemplateAccess', + 4 => 'Fred\\Model\\FredBlueprintCategoryTemplateAccess', + 5 => 'Fred\\Model\\FredBlueprintTemplateAccess', + ), + ), +); \ No newline at end of file diff --git a/core/components/fred/src/Model/mysql/FredBlueprint.php b/core/components/fred/src/Model/mysql/FredBlueprint.php index 2d9d985d..25a87e84 100644 --- a/core/components/fred/src/Model/mysql/FredBlueprint.php +++ b/core/components/fred/src/Model/mysql/FredBlueprint.php @@ -1,253 +1,254 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_blueprints', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'name' => null, - 'uuid' => null, - 'description' => '', - 'image' => '', - 'category' => null, - 'rank' => 0, - 'complete' => 0, - 'public' => 0, - 'createdBy' => 0, - 'data' => '', - ], - 'fieldMeta' => - [ - 'name' => - [ - 'dbtype' => 'varchar', - 'precision' => '127', - 'phptype' => 'string', - 'null' => false, - ], - 'uuid' => - [ - 'dbtype' => 'varchar', - 'precision' => '36', - 'phptype' => 'string', - 'null' => false, - 'index' => 'unique', - ], - 'description' => - [ - 'dbtype' => 'varchar', - 'precision' => '255', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - 'image' => - [ - 'dbtype' => 'text', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - 'category' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - ], - 'rank' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'default' => 0, - ], - 'complete' => - [ - 'dbtype' => 'tinyint', - 'attributes' => 'unsigned', - 'precision' => '1', - 'phptype' => 'boolean', - 'null' => false, - 'default' => 0, - ], - 'public' => - [ - 'dbtype' => 'tinyint', - 'precision' => '1', - 'phptype' => 'boolean', - 'null' => false, - 'default' => 0, - ], - 'createdBy' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'default' => 0, - ], - 'data' => - [ - 'dbtype' => 'mediumtext', - 'phptype' => 'json', - 'null' => false, - 'default' => '', - ], - ], - 'fieldAliases' => - [ - 'content' => 'data', - ], - 'indexes' => - [ - 'uuid' => - [ - 'alias' => 'uuid', - 'primary' => false, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'uuid' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'category' => - [ - 'alias' => 'category', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'category' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'rank' => - [ - 'alias' => 'rank', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'rank' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'complete' => - [ - 'alias' => 'complete', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'complete' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'createdBy' => - [ - 'alias' => 'createdBy', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'createdBy' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'name_category' => - [ - 'alias' => 'name_category', - 'primary' => false, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'name' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - 'category' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'composites' => - [ - 'BlueprintTemplatesAccess' => - [ - 'class' => 'Fred\\Model\\FredBlueprintTemplateAccess', - 'local' => 'id', - 'foreign' => 'blueprint', - 'cardinality' => 'many', - 'owner' => 'local', - ], - ], - 'aggregates' => - [ - 'User' => - [ - 'class' => 'MODX\\Revolution\\modUser', - 'local' => 'user', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - 'Category' => - [ - 'class' => 'Fred\\Model\\FredBlueprintCategory', - 'local' => 'category', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'name' => NULL, + 'uuid' => NULL, + 'description' => '', + 'image' => '', + 'category' => NULL, + 'rank' => 0, + 'complete' => 0, + 'public' => 0, + 'createdBy' => 0, + 'data' => '', + ), + 'fieldMeta' => + array ( + 'name' => + array ( + 'dbtype' => 'varchar', + 'precision' => '127', + 'phptype' => 'string', + 'null' => false, + ), + 'uuid' => + array ( + 'dbtype' => 'varchar', + 'precision' => '36', + 'phptype' => 'string', + 'null' => false, + 'index' => 'unique', + ), + 'description' => + array ( + 'dbtype' => 'varchar', + 'precision' => '255', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + 'image' => + array ( + 'dbtype' => 'text', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + 'category' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + ), + 'rank' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'default' => 0, + ), + 'complete' => + array ( + 'dbtype' => 'tinyint', + 'attributes' => 'unsigned', + 'precision' => '1', + 'phptype' => 'boolean', + 'null' => false, + 'default' => 0, + ), + 'public' => + array ( + 'dbtype' => 'tinyint', + 'precision' => '1', + 'phptype' => 'boolean', + 'null' => false, + 'default' => 0, + ), + 'createdBy' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'default' => 0, + ), + 'data' => + array ( + 'dbtype' => 'mediumtext', + 'phptype' => 'json', + 'null' => false, + 'default' => '', + ), + ), + 'fieldAliases' => + array ( + 'content' => 'data', + ), + 'indexes' => + array ( + 'uuid' => + array ( + 'alias' => 'uuid', + 'primary' => false, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'uuid' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'category' => + array ( + 'alias' => 'category', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'category' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'rank' => + array ( + 'alias' => 'rank', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'rank' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'complete' => + array ( + 'alias' => 'complete', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'complete' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'createdBy' => + array ( + 'alias' => 'createdBy', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'createdBy' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'name_category' => + array ( + 'alias' => 'name_category', + 'primary' => false, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'name' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + 'category' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'composites' => + array ( + 'BlueprintTemplatesAccess' => + array ( + 'class' => 'Fred\\Model\\FredBlueprintTemplateAccess', + 'local' => 'id', + 'foreign' => 'blueprint', + 'cardinality' => 'many', + 'owner' => 'local', + ), + ), + 'aggregates' => + array ( + 'User' => + array ( + 'class' => 'MODX\\Revolution\\modUser', + 'local' => 'user', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + 'Category' => + array ( + 'class' => 'Fred\\Model\\FredBlueprintCategory', + 'local' => 'category', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + ), + ); + } diff --git a/core/components/fred/src/Model/mysql/FredBlueprintCategory.php b/core/components/fred/src/Model/mysql/FredBlueprintCategory.php index 9e1ec658..07ecc002 100644 --- a/core/components/fred/src/Model/mysql/FredBlueprintCategory.php +++ b/core/components/fred/src/Model/mysql/FredBlueprintCategory.php @@ -1,222 +1,223 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_blueprint_categories', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'name' => null, - 'uuid' => null, - 'rank' => 0, - 'theme' => null, - 'public' => 0, - 'createdBy' => 0, - ], - 'fieldMeta' => - [ - 'name' => - [ - 'dbtype' => 'varchar', - 'precision' => '127', - 'phptype' => 'string', - 'null' => false, - ], - 'uuid' => - [ - 'dbtype' => 'varchar', - 'precision' => '36', - 'phptype' => 'string', - 'null' => false, - 'index' => 'unique', - ], - 'rank' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'default' => 0, - ], - 'theme' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - ], - 'public' => - [ - 'dbtype' => 'tinyint', - 'precision' => '1', - 'phptype' => 'boolean', - 'null' => false, - 'default' => 0, - ], - 'createdBy' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'default' => 0, - ], - ], - 'indexes' => - [ - 'uuid' => - [ - 'alias' => 'uuid', - 'primary' => false, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'uuid' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'theme' => - [ - 'alias' => 'theme', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'theme' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'public' => - [ - 'alias' => 'public', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'public' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'rank' => - [ - 'alias' => 'rank', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'rank' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'createdBy' => - [ - 'alias' => 'createdBy', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'createdBy' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'name_theme' => - [ - 'alias' => 'name_theme', - 'primary' => false, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'name' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - 'theme' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'composites' => - [ - 'Blueprints' => - [ - 'class' => 'Fred\\Model\\FredBlueprint', - 'local' => 'id', - 'foreign' => 'category', - 'cardinality' => 'many', - 'owner' => 'local', - ], - 'BlueprintCategoryTemplatesAccess' => - [ - 'class' => 'Fred\\Model\\FredBlueprintCategoryTemplateAccess', - 'local' => 'id', - 'foreign' => 'category', - 'cardinality' => 'many', - 'owner' => 'local', - ], - ], - 'aggregates' => - [ - 'User' => - [ - 'class' => 'MODX\\Revolution\\modUser', - 'local' => 'user', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - 'Theme' => - [ - 'class' => 'Fred\\Model\\FredTheme', - 'local' => 'theme', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'name' => NULL, + 'uuid' => NULL, + 'rank' => 0, + 'theme' => NULL, + 'public' => 0, + 'createdBy' => 0, + ), + 'fieldMeta' => + array ( + 'name' => + array ( + 'dbtype' => 'varchar', + 'precision' => '127', + 'phptype' => 'string', + 'null' => false, + ), + 'uuid' => + array ( + 'dbtype' => 'varchar', + 'precision' => '36', + 'phptype' => 'string', + 'null' => false, + 'index' => 'unique', + ), + 'rank' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'default' => 0, + ), + 'theme' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + ), + 'public' => + array ( + 'dbtype' => 'tinyint', + 'precision' => '1', + 'phptype' => 'boolean', + 'null' => false, + 'default' => 0, + ), + 'createdBy' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'default' => 0, + ), + ), + 'indexes' => + array ( + 'uuid' => + array ( + 'alias' => 'uuid', + 'primary' => false, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'uuid' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'theme' => + array ( + 'alias' => 'theme', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'theme' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'public' => + array ( + 'alias' => 'public', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'public' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'rank' => + array ( + 'alias' => 'rank', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'rank' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'createdBy' => + array ( + 'alias' => 'createdBy', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'createdBy' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'name_theme' => + array ( + 'alias' => 'name_theme', + 'primary' => false, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'name' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + 'theme' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'composites' => + array ( + 'Blueprints' => + array ( + 'class' => 'Fred\\Model\\FredBlueprint', + 'local' => 'id', + 'foreign' => 'category', + 'cardinality' => 'many', + 'owner' => 'local', + ), + 'BlueprintCategoryTemplatesAccess' => + array ( + 'class' => 'Fred\\Model\\FredBlueprintCategoryTemplateAccess', + 'local' => 'id', + 'foreign' => 'category', + 'cardinality' => 'many', + 'owner' => 'local', + ), + ), + 'aggregates' => + array ( + 'User' => + array ( + 'class' => 'MODX\\Revolution\\modUser', + 'local' => 'user', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + 'Theme' => + array ( + 'class' => 'Fred\\Model\\FredTheme', + 'local' => 'theme', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + ), + ); + } diff --git a/core/components/fred/src/Model/mysql/FredBlueprintCategoryTemplateAccess.php b/core/components/fred/src/Model/mysql/FredBlueprintCategoryTemplateAccess.php index c6e8a50e..4837da32 100644 --- a/core/components/fred/src/Model/mysql/FredBlueprintCategoryTemplateAccess.php +++ b/core/components/fred/src/Model/mysql/FredBlueprintCategoryTemplateAccess.php @@ -1,89 +1,90 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_blueprint_category_templates_access', 'extends' => 'xPDO\\Om\\xPDOObject', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'category' => null, - 'template' => null, - ], - 'fieldMeta' => - [ - 'category' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'index' => 'pk', - ], - 'template' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'index' => 'pk', - ], - ], - 'indexes' => - [ - 'PRIMARY' => - [ - 'alias' => 'PRIMARY', - 'primary' => true, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'category' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - 'template' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'aggregates' => - [ - 'Template' => - [ - 'class' => 'Fred\\Model\\FredThemedTemplate', - 'local' => 'template', - 'foreign' => 'template', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - 'BlueprintCategory' => - [ - 'class' => 'Fred\\Model\\FredBlueprintCategory', - 'local' => 'category', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'category' => NULL, + 'template' => NULL, + ), + 'fieldMeta' => + array ( + 'category' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'index' => 'pk', + ), + 'template' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'index' => 'pk', + ), + ), + 'indexes' => + array ( + 'PRIMARY' => + array ( + 'alias' => 'PRIMARY', + 'primary' => true, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'category' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + 'template' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'aggregates' => + array ( + 'Template' => + array ( + 'class' => 'Fred\\Model\\FredThemedTemplate', + 'local' => 'template', + 'foreign' => 'template', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + 'BlueprintCategory' => + array ( + 'class' => 'Fred\\Model\\FredBlueprintCategory', + 'local' => 'category', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + ), + ); + } diff --git a/core/components/fred/src/Model/mysql/FredBlueprintTemplateAccess.php b/core/components/fred/src/Model/mysql/FredBlueprintTemplateAccess.php index b9ec00c0..3730d10f 100644 --- a/core/components/fred/src/Model/mysql/FredBlueprintTemplateAccess.php +++ b/core/components/fred/src/Model/mysql/FredBlueprintTemplateAccess.php @@ -1,89 +1,90 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_blueprint_templates_access', 'extends' => 'xPDO\\Om\\xPDOObject', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'blueprint' => null, - 'template' => null, - ], - 'fieldMeta' => - [ - 'blueprint' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'index' => 'pk', - ], - 'template' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'index' => 'pk', - ], - ], - 'indexes' => - [ - 'PRIMARY' => - [ - 'alias' => 'PRIMARY', - 'primary' => true, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'blueprint' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - 'template' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'aggregates' => - [ - 'Template' => - [ - 'class' => 'Fred\\Model\\FredThemedTemplate', - 'local' => 'template', - 'foreign' => 'template', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - 'Blueprint' => - [ - 'class' => 'Fred\\Model\\FredBlueprint', - 'local' => 'blueprint', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'blueprint' => NULL, + 'template' => NULL, + ), + 'fieldMeta' => + array ( + 'blueprint' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'index' => 'pk', + ), + 'template' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'index' => 'pk', + ), + ), + 'indexes' => + array ( + 'PRIMARY' => + array ( + 'alias' => 'PRIMARY', + 'primary' => true, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'blueprint' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + 'template' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'aggregates' => + array ( + 'Template' => + array ( + 'class' => 'Fred\\Model\\FredThemedTemplate', + 'local' => 'template', + 'foreign' => 'template', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + 'Blueprint' => + array ( + 'class' => 'Fred\\Model\\FredBlueprint', + 'local' => 'blueprint', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + ), + ); + } diff --git a/core/components/fred/src/Model/mysql/FredCache.php b/core/components/fred/src/Model/mysql/FredCache.php index fe7286fa..c72df526 100644 --- a/core/components/fred/src/Model/mysql/FredCache.php +++ b/core/components/fred/src/Model/mysql/FredCache.php @@ -1,129 +1,130 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_cache', 'extends' => 'xPDO\\Om\\xPDOObject', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'resource' => null, - 'element' => null, - 'content' => '', - ], - 'fieldMeta' => - [ - 'resource' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '11', - 'phptype' => 'integer', - 'null' => false, - 'index' => 'pk', - ], - 'element' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '11', - 'phptype' => 'integer', - 'null' => false, - 'index' => 'pk', - ], - 'content' => - [ - 'dbtype' => 'mediumtext', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - ], - 'indexes' => - [ - 'resource' => - [ - 'alias' => 'resource', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'resource' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'element' => - [ - 'alias' => 'element', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'element' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'PRIMARY' => - [ - 'alias' => 'PRIMARY', - 'primary' => true, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'resource' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - 'element' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'aggregates' => - [ - 'Resource' => - [ - 'class' => 'MODX\\Revolution\\modResource', - 'local' => 'resource', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - 'Element' => - [ - 'class' => 'Fred\\Model\\FredElement', - 'local' => 'element', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'resource' => NULL, + 'element' => NULL, + 'content' => '', + ), + 'fieldMeta' => + array ( + 'resource' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '11', + 'phptype' => 'integer', + 'null' => false, + 'index' => 'pk', + ), + 'element' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '11', + 'phptype' => 'integer', + 'null' => false, + 'index' => 'pk', + ), + 'content' => + array ( + 'dbtype' => 'mediumtext', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + ), + 'indexes' => + array ( + 'resource' => + array ( + 'alias' => 'resource', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'resource' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'element' => + array ( + 'alias' => 'element', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'element' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'PRIMARY' => + array ( + 'alias' => 'PRIMARY', + 'primary' => true, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'resource' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + 'element' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'aggregates' => + array ( + 'Resource' => + array ( + 'class' => 'MODX\\Revolution\\modResource', + 'local' => 'resource', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + 'Element' => + array ( + 'class' => 'Fred\\Model\\FredElement', + 'local' => 'element', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + ), + ); + } diff --git a/core/components/fred/src/Model/mysql/FredElement.php b/core/components/fred/src/Model/mysql/FredElement.php index e01ab08b..704050c8 100644 --- a/core/components/fred/src/Model/mysql/FredElement.php +++ b/core/components/fred/src/Model/mysql/FredElement.php @@ -1,214 +1,215 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_elements', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'name' => null, - 'uuid' => null, - 'description' => '', - 'image' => '', - 'category' => null, - 'rank' => 0, - 'option_set' => 0, - 'options_override' => '', - 'content' => '', - ], - 'fieldMeta' => - [ - 'name' => - [ - 'dbtype' => 'varchar', - 'precision' => '127', - 'phptype' => 'string', - 'null' => false, - ], - 'uuid' => - [ - 'dbtype' => 'varchar', - 'precision' => '36', - 'phptype' => 'string', - 'null' => false, - 'index' => 'unique', - ], - 'description' => - [ - 'dbtype' => 'varchar', - 'precision' => '255', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - 'image' => - [ - 'dbtype' => 'text', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - 'category' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - ], - 'rank' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'default' => 0, - ], - 'option_set' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'default' => 0, - ], - 'options_override' => - [ - 'dbtype' => 'mediumtext', - 'phptype' => 'json', - 'null' => false, - 'default' => '', - ], - 'content' => - [ - 'dbtype' => 'mediumtext', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - ], - 'indexes' => - [ - 'uuid' => - [ - 'alias' => 'uuid', - 'primary' => false, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'uuid' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'category' => - [ - 'alias' => 'category', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'category' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'rank' => - [ - 'alias' => 'rank', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'rank' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'name_category' => - [ - 'alias' => 'name_category', - 'primary' => false, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'name' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - 'category' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'composites' => - [ - 'Cache' => - [ - 'class' => 'Fred\\Model\\FredCache', - 'local' => 'id', - 'foreign' => 'element', - 'cardinality' => 'many', - 'owner' => 'local', - ], - 'ElementTemplatesAccess' => - [ - 'class' => 'Fred\\Model\\FredElementTemplateAccess', - 'local' => 'id', - 'foreign' => 'element', - 'cardinality' => 'many', - 'owner' => 'local', - ], - ], - 'aggregates' => - [ - 'Category' => - [ - 'class' => 'Fred\\Model\\FredElementCategory', - 'local' => 'category', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - 'OptionSet' => - [ - 'class' => 'Fred\\Model\\FredElementOptionSet', - 'local' => 'option_set', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'name' => NULL, + 'uuid' => NULL, + 'description' => '', + 'image' => '', + 'category' => NULL, + 'rank' => 0, + 'option_set' => 0, + 'options_override' => '', + 'content' => '', + ), + 'fieldMeta' => + array ( + 'name' => + array ( + 'dbtype' => 'varchar', + 'precision' => '127', + 'phptype' => 'string', + 'null' => false, + ), + 'uuid' => + array ( + 'dbtype' => 'varchar', + 'precision' => '36', + 'phptype' => 'string', + 'null' => false, + 'index' => 'unique', + ), + 'description' => + array ( + 'dbtype' => 'varchar', + 'precision' => '255', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + 'image' => + array ( + 'dbtype' => 'text', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + 'category' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + ), + 'rank' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'default' => 0, + ), + 'option_set' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'default' => 0, + ), + 'options_override' => + array ( + 'dbtype' => 'mediumtext', + 'phptype' => 'json', + 'null' => false, + 'default' => '', + ), + 'content' => + array ( + 'dbtype' => 'mediumtext', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + ), + 'indexes' => + array ( + 'uuid' => + array ( + 'alias' => 'uuid', + 'primary' => false, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'uuid' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'category' => + array ( + 'alias' => 'category', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'category' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'rank' => + array ( + 'alias' => 'rank', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'rank' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'name_category' => + array ( + 'alias' => 'name_category', + 'primary' => false, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'name' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + 'category' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'composites' => + array ( + 'Cache' => + array ( + 'class' => 'Fred\\Model\\FredCache', + 'local' => 'id', + 'foreign' => 'element', + 'cardinality' => 'many', + 'owner' => 'local', + ), + 'ElementTemplatesAccess' => + array ( + 'class' => 'Fred\\Model\\FredElementTemplateAccess', + 'local' => 'id', + 'foreign' => 'element', + 'cardinality' => 'many', + 'owner' => 'local', + ), + ), + 'aggregates' => + array ( + 'Category' => + array ( + 'class' => 'Fred\\Model\\FredElementCategory', + 'local' => 'category', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + 'OptionSet' => + array ( + 'class' => 'Fred\\Model\\FredElementOptionSet', + 'local' => 'option_set', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + ), + ); + } diff --git a/core/components/fred/src/Model/mysql/FredElementCategory.php b/core/components/fred/src/Model/mysql/FredElementCategory.php index b9094c55..2ac574a5 100644 --- a/core/components/fred/src/Model/mysql/FredElementCategory.php +++ b/core/components/fred/src/Model/mysql/FredElementCategory.php @@ -1,163 +1,164 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_element_categories', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'name' => null, - 'uuid' => null, - 'rank' => 0, - 'theme' => null, - ], - 'fieldMeta' => - [ - 'name' => - [ - 'dbtype' => 'varchar', - 'precision' => '127', - 'phptype' => 'string', - 'null' => false, - ], - 'uuid' => - [ - 'dbtype' => 'varchar', - 'precision' => '36', - 'phptype' => 'string', - 'null' => false, - 'index' => 'unique', - ], - 'rank' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'default' => 0, - ], - 'theme' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - ], - ], - 'indexes' => - [ - 'uuid' => - [ - 'alias' => 'uuid', - 'primary' => false, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'uuid' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'rank' => - [ - 'alias' => 'rank', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'rank' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'theme' => - [ - 'alias' => 'theme', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'theme' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'name_theme' => - [ - 'alias' => 'name_theme', - 'primary' => false, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'name' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - 'theme' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'composites' => - [ - 'Elements' => - [ - 'class' => 'Fred\\Model\\FredElement', - 'local' => 'id', - 'foreign' => 'category', - 'cardinality' => 'many', - 'owner' => 'local', - ], - 'ElementCategoryTemplatesAccess' => - [ - 'class' => 'Fred\\Model\\FredElementCategoryTemplateAccess', - 'local' => 'id', - 'foreign' => 'category', - 'cardinality' => 'many', - 'owner' => 'local', - ], - ], - 'aggregates' => - [ - 'Theme' => - [ - 'class' => 'Fred\\Model\\FredTheme', - 'local' => 'theme', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'name' => NULL, + 'uuid' => NULL, + 'rank' => 0, + 'theme' => NULL, + ), + 'fieldMeta' => + array ( + 'name' => + array ( + 'dbtype' => 'varchar', + 'precision' => '127', + 'phptype' => 'string', + 'null' => false, + ), + 'uuid' => + array ( + 'dbtype' => 'varchar', + 'precision' => '36', + 'phptype' => 'string', + 'null' => false, + 'index' => 'unique', + ), + 'rank' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'default' => 0, + ), + 'theme' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + ), + ), + 'indexes' => + array ( + 'uuid' => + array ( + 'alias' => 'uuid', + 'primary' => false, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'uuid' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'rank' => + array ( + 'alias' => 'rank', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'rank' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'theme' => + array ( + 'alias' => 'theme', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'theme' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'name_theme' => + array ( + 'alias' => 'name_theme', + 'primary' => false, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'name' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + 'theme' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'composites' => + array ( + 'Elements' => + array ( + 'class' => 'Fred\\Model\\FredElement', + 'local' => 'id', + 'foreign' => 'category', + 'cardinality' => 'many', + 'owner' => 'local', + ), + 'ElementCategoryTemplatesAccess' => + array ( + 'class' => 'Fred\\Model\\FredElementCategoryTemplateAccess', + 'local' => 'id', + 'foreign' => 'category', + 'cardinality' => 'many', + 'owner' => 'local', + ), + ), + 'aggregates' => + array ( + 'Theme' => + array ( + 'class' => 'Fred\\Model\\FredTheme', + 'local' => 'theme', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + ), + ); + } diff --git a/core/components/fred/src/Model/mysql/FredElementCategoryTemplateAccess.php b/core/components/fred/src/Model/mysql/FredElementCategoryTemplateAccess.php index 0db6a8e1..ca1bc8ff 100644 --- a/core/components/fred/src/Model/mysql/FredElementCategoryTemplateAccess.php +++ b/core/components/fred/src/Model/mysql/FredElementCategoryTemplateAccess.php @@ -1,89 +1,90 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_element_category_templates_access', 'extends' => 'xPDO\\Om\\xPDOObject', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'category' => null, - 'template' => null, - ], - 'fieldMeta' => - [ - 'category' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'index' => 'pk', - ], - 'template' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'index' => 'pk', - ], - ], - 'indexes' => - [ - 'PRIMARY' => - [ - 'alias' => 'PRIMARY', - 'primary' => true, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'category' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - 'template' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'aggregates' => - [ - 'Template' => - [ - 'class' => 'Fred\\Model\\FredThemedTemplate', - 'local' => 'template', - 'foreign' => 'template', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - 'ElementCategory' => - [ - 'class' => 'Fred\\Model\\FredElementCategory', - 'local' => 'category', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'category' => NULL, + 'template' => NULL, + ), + 'fieldMeta' => + array ( + 'category' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'index' => 'pk', + ), + 'template' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'index' => 'pk', + ), + ), + 'indexes' => + array ( + 'PRIMARY' => + array ( + 'alias' => 'PRIMARY', + 'primary' => true, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'category' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + 'template' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'aggregates' => + array ( + 'Template' => + array ( + 'class' => 'Fred\\Model\\FredThemedTemplate', + 'local' => 'template', + 'foreign' => 'template', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + 'ElementCategory' => + array ( + 'class' => 'Fred\\Model\\FredElementCategory', + 'local' => 'category', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + ), + ); + } diff --git a/core/components/fred/src/Model/mysql/FredElementOptionSet.php b/core/components/fred/src/Model/mysql/FredElementOptionSet.php index 5c766d8b..27c2d0c0 100644 --- a/core/components/fred/src/Model/mysql/FredElementOptionSet.php +++ b/core/components/fred/src/Model/mysql/FredElementOptionSet.php @@ -1,140 +1,141 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_element_option_sets', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'name' => null, - 'description' => '', - 'complete' => 0, - 'theme' => null, - 'data' => '', - ], - 'fieldMeta' => - [ - 'name' => - [ - 'dbtype' => 'varchar', - 'precision' => '127', - 'phptype' => 'string', - 'null' => false, - ], - 'description' => - [ - 'dbtype' => 'varchar', - 'precision' => '255', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - 'complete' => - [ - 'dbtype' => 'tinyint', - 'attributes' => 'unsigned', - 'precision' => '1', - 'phptype' => 'boolean', - 'null' => false, - 'default' => 0, - ], - 'theme' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - ], - 'data' => - [ - 'dbtype' => 'mediumtext', - 'phptype' => 'json', - 'null' => false, - 'default' => '', - ], - ], - 'fieldAliases' => - [ - 'content' => 'data', - ], - 'indexes' => - [ - 'theme' => - [ - 'alias' => 'theme', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'theme' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'complete' => - [ - 'alias' => 'complete', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'complete' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'name_theme' => - [ - 'alias' => 'name_theme', - 'primary' => false, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'name' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - 'theme' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'aggregates' => - [ - 'Theme' => - [ - 'class' => 'Fred\\Model\\FredTheme', - 'local' => 'theme', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'name' => NULL, + 'description' => '', + 'complete' => 0, + 'theme' => NULL, + 'data' => '', + ), + 'fieldMeta' => + array ( + 'name' => + array ( + 'dbtype' => 'varchar', + 'precision' => '127', + 'phptype' => 'string', + 'null' => false, + ), + 'description' => + array ( + 'dbtype' => 'varchar', + 'precision' => '255', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + 'complete' => + array ( + 'dbtype' => 'tinyint', + 'attributes' => 'unsigned', + 'precision' => '1', + 'phptype' => 'boolean', + 'null' => false, + 'default' => 0, + ), + 'theme' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + ), + 'data' => + array ( + 'dbtype' => 'mediumtext', + 'phptype' => 'json', + 'null' => false, + 'default' => '', + ), + ), + 'fieldAliases' => + array ( + 'content' => 'data', + ), + 'indexes' => + array ( + 'theme' => + array ( + 'alias' => 'theme', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'theme' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'complete' => + array ( + 'alias' => 'complete', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'complete' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'name_theme' => + array ( + 'alias' => 'name_theme', + 'primary' => false, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'name' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + 'theme' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'aggregates' => + array ( + 'Theme' => + array ( + 'class' => 'Fred\\Model\\FredTheme', + 'local' => 'theme', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + ), + ); + } diff --git a/core/components/fred/src/Model/mysql/FredElementRTEConfig.php b/core/components/fred/src/Model/mysql/FredElementRTEConfig.php index 94db97bd..dd85fca3 100644 --- a/core/components/fred/src/Model/mysql/FredElementRTEConfig.php +++ b/core/components/fred/src/Model/mysql/FredElementRTEConfig.php @@ -1,114 +1,115 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_element_rte_configs', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'name' => null, - 'description' => '', - 'theme' => null, - 'data' => '', - ], - 'fieldMeta' => - [ - 'name' => - [ - 'dbtype' => 'varchar', - 'precision' => '128', - 'phptype' => 'string', - 'null' => false, - ], - 'description' => - [ - 'dbtype' => 'varchar', - 'precision' => '255', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - 'theme' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - ], - 'data' => - [ - 'dbtype' => 'mediumtext', - 'phptype' => 'json', - 'null' => false, - 'default' => '', - ], - ], - 'fieldAliases' => - [ - 'content' => 'data', - ], - 'indexes' => - [ - 'theme' => - [ - 'alias' => 'theme', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'theme' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'name_theme' => - [ - 'alias' => 'name_theme', - 'primary' => false, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'name' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - 'theme' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'aggregates' => - [ - 'Theme' => - [ - 'class' => 'Fred\\Model\\FredTheme', - 'local' => 'theme', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'name' => NULL, + 'description' => '', + 'theme' => NULL, + 'data' => '', + ), + 'fieldMeta' => + array ( + 'name' => + array ( + 'dbtype' => 'varchar', + 'precision' => '128', + 'phptype' => 'string', + 'null' => false, + ), + 'description' => + array ( + 'dbtype' => 'varchar', + 'precision' => '255', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + 'theme' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + ), + 'data' => + array ( + 'dbtype' => 'mediumtext', + 'phptype' => 'json', + 'null' => false, + 'default' => '', + ), + ), + 'fieldAliases' => + array ( + 'content' => 'data', + ), + 'indexes' => + array ( + 'theme' => + array ( + 'alias' => 'theme', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'theme' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'name_theme' => + array ( + 'alias' => 'name_theme', + 'primary' => false, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'name' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + 'theme' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'aggregates' => + array ( + 'Theme' => + array ( + 'class' => 'Fred\\Model\\FredTheme', + 'local' => 'theme', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + ), + ); + } diff --git a/core/components/fred/src/Model/mysql/FredElementTemplateAccess.php b/core/components/fred/src/Model/mysql/FredElementTemplateAccess.php index 9b3505ef..f2673387 100644 --- a/core/components/fred/src/Model/mysql/FredElementTemplateAccess.php +++ b/core/components/fred/src/Model/mysql/FredElementTemplateAccess.php @@ -1,89 +1,90 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_element_templates_access', 'extends' => 'xPDO\\Om\\xPDOObject', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'element' => null, - 'template' => null, - ], - 'fieldMeta' => - [ - 'element' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'index' => 'pk', - ], - 'template' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'index' => 'pk', - ], - ], - 'indexes' => - [ - 'PRIMARY' => - [ - 'alias' => 'PRIMARY', - 'primary' => true, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'element' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - 'template' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'aggregates' => - [ - 'Template' => - [ - 'class' => 'Fred\\Model\\FredThemedTemplate', - 'local' => 'template', - 'foreign' => 'template', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - 'Element' => - [ - 'class' => 'Fred\\Model\\FredElement', - 'local' => 'element', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'element' => NULL, + 'template' => NULL, + ), + 'fieldMeta' => + array ( + 'element' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'index' => 'pk', + ), + 'template' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'index' => 'pk', + ), + ), + 'indexes' => + array ( + 'PRIMARY' => + array ( + 'alias' => 'PRIMARY', + 'primary' => true, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'element' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + 'template' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'aggregates' => + array ( + 'Template' => + array ( + 'class' => 'Fred\\Model\\FredThemedTemplate', + 'local' => 'template', + 'foreign' => 'template', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + 'Element' => + array ( + 'class' => 'Fred\\Model\\FredElement', + 'local' => 'element', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + ), + ); + } diff --git a/core/components/fred/src/Model/mysql/FredTheme.php b/core/components/fred/src/Model/mysql/FredTheme.php index 988b49d3..7b23964c 100644 --- a/core/components/fred/src/Model/mysql/FredTheme.php +++ b/core/components/fred/src/Model/mysql/FredTheme.php @@ -1,172 +1,173 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_themes', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'name' => null, - 'namespace' => '', - 'settingsPrefix' => '', - 'theme_folder' => '', - 'uuid' => null, - 'description' => '', - 'config' => '', - 'default_element' => '', - ], - 'fieldMeta' => - [ - 'name' => - [ - 'dbtype' => 'varchar', - 'precision' => '127', - 'phptype' => 'string', - 'null' => false, - ], - 'namespace' => - [ - 'dbtype' => 'varchar', - 'precision' => '255', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - 'settingsPrefix' => - [ - 'dbtype' => 'varchar', - 'precision' => '255', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - 'theme_folder' => - [ - 'dbtype' => 'varchar', - 'precision' => '255', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - 'uuid' => - [ - 'dbtype' => 'varchar', - 'precision' => '36', - 'phptype' => 'string', - 'null' => false, - 'index' => 'unique', - ], - 'description' => - [ - 'dbtype' => 'varchar', - 'precision' => '255', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - 'config' => - [ - 'dbtype' => 'mediumtext', - 'phptype' => 'json', - 'null' => false, - 'default' => '', - ], - 'default_element' => - [ - 'dbtype' => 'varchar', - 'precision' => '255', - 'phptype' => 'string', - 'null' => false, - 'default' => '', - ], - ], - 'indexes' => - [ - 'uuid' => - [ - 'alias' => 'uuid', - 'primary' => false, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'uuid' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'name' => - [ - 'alias' => 'name', - 'primary' => false, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'name' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'composites' => - [ - 'ElementCategories' => - [ - 'class' => 'Fred\\Model\\FredElementCategory', - 'local' => 'id', - 'foreign' => 'theme', - 'cardinality' => 'many', - 'owner' => 'local', - ], - 'BlueprintCategories' => - [ - 'class' => 'Fred\\Model\\FredBlueprintCategory', - 'local' => 'id', - 'foreign' => 'theme', - 'cardinality' => 'many', - 'owner' => 'local', - ], - 'RTEConfigs' => - [ - 'class' => 'Fred\\Model\\FredElementRTEConfig', - 'local' => 'id', - 'foreign' => 'theme', - 'cardinality' => 'many', - 'owner' => 'local', - ], - 'OptionSets' => - [ - 'class' => 'Fred\\Model\\FredElementOptionSet', - 'local' => 'id', - 'foreign' => 'theme', - 'cardinality' => 'many', - 'owner' => 'local', - ], - 'Templates' => - [ - 'class' => 'Fred\\Model\\FredThemedTemplate', - 'local' => 'id', - 'foreign' => 'theme', - 'cardinality' => 'many', - 'owner' => 'local', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'name' => NULL, + 'namespace' => '', + 'settingsPrefix' => '', + 'theme_folder' => '', + 'uuid' => NULL, + 'description' => '', + 'config' => '', + 'default_element' => '', + ), + 'fieldMeta' => + array ( + 'name' => + array ( + 'dbtype' => 'varchar', + 'precision' => '127', + 'phptype' => 'string', + 'null' => false, + ), + 'namespace' => + array ( + 'dbtype' => 'varchar', + 'precision' => '255', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + 'settingsPrefix' => + array ( + 'dbtype' => 'varchar', + 'precision' => '255', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + 'theme_folder' => + array ( + 'dbtype' => 'varchar', + 'precision' => '255', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + 'uuid' => + array ( + 'dbtype' => 'varchar', + 'precision' => '36', + 'phptype' => 'string', + 'null' => false, + 'index' => 'unique', + ), + 'description' => + array ( + 'dbtype' => 'varchar', + 'precision' => '255', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + 'config' => + array ( + 'dbtype' => 'mediumtext', + 'phptype' => 'json', + 'null' => false, + 'default' => '', + ), + 'default_element' => + array ( + 'dbtype' => 'varchar', + 'precision' => '255', + 'phptype' => 'string', + 'null' => false, + 'default' => '', + ), + ), + 'indexes' => + array ( + 'uuid' => + array ( + 'alias' => 'uuid', + 'primary' => false, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'uuid' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'name' => + array ( + 'alias' => 'name', + 'primary' => false, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'name' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'composites' => + array ( + 'ElementCategories' => + array ( + 'class' => 'Fred\\Model\\FredElementCategory', + 'local' => 'id', + 'foreign' => 'theme', + 'cardinality' => 'many', + 'owner' => 'local', + ), + 'BlueprintCategories' => + array ( + 'class' => 'Fred\\Model\\FredBlueprintCategory', + 'local' => 'id', + 'foreign' => 'theme', + 'cardinality' => 'many', + 'owner' => 'local', + ), + 'RTEConfigs' => + array ( + 'class' => 'Fred\\Model\\FredElementRTEConfig', + 'local' => 'id', + 'foreign' => 'theme', + 'cardinality' => 'many', + 'owner' => 'local', + ), + 'OptionSets' => + array ( + 'class' => 'Fred\\Model\\FredElementOptionSet', + 'local' => 'id', + 'foreign' => 'theme', + 'cardinality' => 'many', + 'owner' => 'local', + ), + 'Templates' => + array ( + 'class' => 'Fred\\Model\\FredThemedTemplate', + 'local' => 'id', + 'foreign' => 'theme', + 'cardinality' => 'many', + 'owner' => 'local', + ), + ), + ); + } diff --git a/core/components/fred/src/Model/mysql/FredThemedTemplate.php b/core/components/fred/src/Model/mysql/FredThemedTemplate.php index 37598bc3..9e303ba1 100644 --- a/core/components/fred/src/Model/mysql/FredThemedTemplate.php +++ b/core/components/fred/src/Model/mysql/FredThemedTemplate.php @@ -1,119 +1,120 @@ 'Fred\\Model\\', 'version' => '3.0', 'table' => 'fred_themed_templates', 'extends' => 'xPDO\\Om\\xPDOObject', - 'tableMeta' => - [ - 'engine' => 'InnoDB', - ], - 'fields' => - [ - 'template' => null, - 'theme' => null, - 'default_blueprint' => 0, - ], - 'fieldMeta' => - [ - 'template' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'index' => 'pk', - ], - 'theme' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - ], - 'default_blueprint' => - [ - 'dbtype' => 'int', - 'attributes' => 'unsigned', - 'precision' => '10', - 'phptype' => 'integer', - 'null' => false, - 'default' => 0, - ], - ], - 'indexes' => - [ - 'PRIMARY' => - [ - 'alias' => 'PRIMARY', - 'primary' => true, - 'unique' => true, - 'type' => 'BTREE', - 'columns' => - [ - 'template' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - 'theme' => - [ - 'alias' => 'theme', - 'primary' => false, - 'unique' => false, - 'type' => 'BTREE', - 'columns' => - [ - 'theme' => - [ - 'length' => '', - 'collation' => 'A', - 'null' => false, - ], - ], - ], - ], - 'composites' => - [ - 'ElementCategoryTemplatesAccess' => - [ - 'class' => 'Fred\\Model\\FredElementCategoryTemplateAccess', - 'local' => 'template', - 'foreign' => 'template', - 'cardinality' => 'many', - 'owner' => 'local', - ], - ], - 'aggregates' => - [ - 'Theme' => - [ - 'class' => 'Fred\\Model\\FredTheme', - 'local' => 'theme', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - 'Template' => - [ - 'class' => 'MODX\\Revolution\\modTemplate', - 'local' => 'template', - 'foreign' => 'id', - 'cardinality' => 'one', - 'owner' => 'foreign', - ], - ], - ]; + 'tableMeta' => + array ( + 'engine' => 'InnoDB', + ), + 'fields' => + array ( + 'template' => NULL, + 'theme' => NULL, + 'default_blueprint' => 0, + ), + 'fieldMeta' => + array ( + 'template' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'index' => 'pk', + ), + 'theme' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + ), + 'default_blueprint' => + array ( + 'dbtype' => 'int', + 'attributes' => 'unsigned', + 'precision' => '10', + 'phptype' => 'integer', + 'null' => false, + 'default' => 0, + ), + ), + 'indexes' => + array ( + 'PRIMARY' => + array ( + 'alias' => 'PRIMARY', + 'primary' => true, + 'unique' => true, + 'type' => 'BTREE', + 'columns' => + array ( + 'template' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + 'theme' => + array ( + 'alias' => 'theme', + 'primary' => false, + 'unique' => false, + 'type' => 'BTREE', + 'columns' => + array ( + 'theme' => + array ( + 'length' => '', + 'collation' => 'A', + 'null' => false, + ), + ), + ), + ), + 'composites' => + array ( + 'ElementCategoryTemplatesAccess' => + array ( + 'class' => 'Fred\\Model\\FredElementCategoryTemplateAccess', + 'local' => 'template', + 'foreign' => 'template', + 'cardinality' => 'many', + 'owner' => 'local', + ), + ), + 'aggregates' => + array ( + 'Theme' => + array ( + 'class' => 'Fred\\Model\\FredTheme', + 'local' => 'theme', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + 'Template' => + array ( + 'class' => 'MODX\\Revolution\\modTemplate', + 'local' => 'template', + 'foreign' => 'id', + 'cardinality' => 'one', + 'owner' => 'foreign', + ), + ), + ); + }