diff --git a/codegen/templates/aggregate_db_orm/class_paths/_main.tpl.php b/codegen/templates/aggregate_db_orm/class_paths/_main.tpl.php index 3eb871d..0e6d276 100644 --- a/codegen/templates/aggregate_db_orm/class_paths/_main.tpl.php +++ b/codegen/templates/aggregate_db_orm/class_paths/_main.tpl.php @@ -1,6 +1,6 @@ true, diff --git a/codegen/templates/aggregate_db_orm/qqn/_main.tpl.php b/codegen/templates/aggregate_db_orm/qqn/_main.tpl.php index f0d6e6d..9f551c7 100644 --- a/codegen/templates/aggregate_db_orm/qqn/_main.tpl.php +++ b/codegen/templates/aggregate_db_orm/qqn/_main.tpl.php @@ -1,6 +1,6 @@ true, diff --git a/codegen/templates/aggregate_db_type/class_paths/_main.tpl.php b/codegen/templates/aggregate_db_type/class_paths/_main.tpl.php index 15060b6..5878a38 100644 --- a/codegen/templates/aggregate_db_type/class_paths/_main.tpl.php +++ b/codegen/templates/aggregate_db_type/class_paths/_main.tpl.php @@ -1,6 +1,6 @@ true, diff --git a/codegen/templates/db_orm/class_gen/_main.tpl.php b/codegen/templates/db_orm/class_gen/_main.tpl.php index bbcc9a6..c66f196 100644 --- a/codegen/templates/db_orm/class_gen/_main.tpl.php +++ b/codegen/templates/db_orm/class_gen/_main.tpl.php @@ -1,6 +1,6 @@ true, diff --git a/codegen/templates/db_orm/class_gen/associated_object.tpl.php b/codegen/templates/db_orm/class_gen/associated_object.tpl.php index 6adb3a8..da20d50 100644 --- a/codegen/templates/db_orm/class_gen/associated_object.tpl.php +++ b/codegen/templates/db_orm/class_gen/associated_object.tpl.php @@ -1,4 +1,4 @@ -TableArray[strtolower($objReverseReference->Table)]; ?> +TableArray[strtolower($objReverseReference->Table)]; ?> ColumnArray[strtolower($objReverseReference->Column)]; ?> @@ -14,11 +14,11 @@ */ public function getObjectDescription ?>Array($objOptionalClauses = null) { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) return array(); try { - return VariableType ?>::LoadArrayByPropertyName ?>(ImplodeObjectArray(', ', '$this->', '', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>, $objOptionalClauses); + return VariableType ?>::LoadArrayByPropertyName ?>(ImplodeObjectArray(', ', '$this->', '', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>, $objOptionalClauses); } catch (Caller $objExc) { $objExc->incrementOffset(); throw $objExc; @@ -32,10 +32,10 @@ public function getObjectDescription ?>Array($objOptio */ public function countObjectDescriptionPlural ?>() { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) return 0; - return VariableType ?>::CountByPropertyName ?>(ImplodeObjectArray(', ', '$this->', '', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>); + return VariableType ?>::CountByPropertyName ?>(ImplodeObjectArray(', ', '$this->', '', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>); } /** @@ -48,9 +48,9 @@ public function countObjectDescriptionPlural ?>() */ public function associateObjectDescription ?>(VariableType ?> $VariableName ?>) { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call AssociateObjectDescription ?> on this unsaved ClassName ?>.'); - if (ImplodeObjectArray(' || ', '(is_null($' . $objReverseReference->VariableName . '->', '))', 'PropertyName', $objReverseReferenceTable->PrimaryKeyColumnArray) ?>) + if (ImplodeObjectArray(' || ', '(is_null($' . $objReverseReference->VariableName . '->', '))', 'PropertyName', $objReverseReferenceTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call AssociateObjectDescription ?> on this ClassName ?> with an unsaved ClassName ?>.'); // Get the Database Object for this Class @@ -82,9 +82,9 @@ public function associateObjectDescription ?>(ObjectDescription ?>(VariableType ?> $VariableName ?>) { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call UnassociateObjectDescription ?> on this unsaved ClassName ?>.'); - if (ImplodeObjectArray(' || ', '(is_null($' . $objReverseReference->VariableName . '->', '))', 'PropertyName', $objReverseReferenceTable->PrimaryKeyColumnArray) ?>) + if (ImplodeObjectArray(' || ', '(is_null($' . $objReverseReference->VariableName . '->', '))', 'PropertyName', $objReverseReferenceTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call UnassociateObjectDescription ?> on this ClassName ?> with an unsaved ClassName ?>.'); // Get the Database Object for this Class @@ -114,7 +114,7 @@ public function unassociateObjectDescription ?>(ObjectDescriptionPlural ?>() { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call UnassociateObjectDescription ?> on this unsaved ClassName ?>.'); // Get the Database Object for this Class @@ -141,9 +141,9 @@ public function unassociateAllObjectDescriptionPlural */ public function deleteAssociatedObjectDescription ?>(VariableType ?> $VariableName ?>) { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call UnassociateObjectDescription ?> on this unsaved ClassName ?>.'); - if (ImplodeObjectArray(' || ', '(is_null($' . $objReverseReference->VariableName . '->', '))', 'PropertyName', $objReverseReferenceTable->PrimaryKeyColumnArray) ?>) + if (ImplodeObjectArray(' || ', '(is_null($' . $objReverseReference->VariableName . '->', '))', 'PropertyName', $objReverseReferenceTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call UnassociateObjectDescription ?> on this ClassName ?> with an unsaved ClassName ?>.'); // Get the Database Object for this Class @@ -171,7 +171,7 @@ public function deleteAssociatedObjectDescription ?>(< */ public function deleteAllObjectDescriptionPlural ?>() { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call UnassociateObjectDescription ?> on this unsaved ClassName ?>.'); // Get the Database Object for this Class diff --git a/codegen/templates/db_orm/class_gen/associated_object_manytomany.tpl.php b/codegen/templates/db_orm/class_gen/associated_object_manytomany.tpl.php index 18daf05..562ad76 100644 --- a/codegen/templates/db_orm/class_gen/associated_object_manytomany.tpl.php +++ b/codegen/templates/db_orm/class_gen/associated_object_manytomany.tpl.php @@ -1,4 +1,4 @@ -TableArray[strtolower($objManyToManyReference->AssociatedTable)]; ?> +TableArray[strtolower($objManyToManyReference->AssociatedTable)]; ?> // Related Many-to-Many Objects' Methods for ObjectDescription ?> @@ -12,7 +12,7 @@ * @throws Caller */ public function getObjectDescription ?>Array($objClauses = null) { - if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) return array(); try { @@ -31,7 +31,7 @@ public function getObjectDescription ?>Array($objCl */ public function getObjectDescription ?>Keys() { - if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call GetObjectDescription ?>Ids on this unsaved ClassName ?>.'); // Get the Database Object for this Class @@ -61,7 +61,7 @@ public function getObjectDescription ?>Keys() */ public function countObjectDescriptionPlural ?>() { - if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) return 0; return VariableType ?>::CountByOppositeObjectDescription ?>($this->PrimaryKeyColumnArray[0]->VariableName ?>); @@ -76,9 +76,9 @@ public function countObjectDescriptionPlural ?>() */ public function isObjectDescription ?>Associated(VariableType ?> $VariableName ?>) { - if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call IsObjectDescription ?>Associated on this unsaved ClassName ?>.'); - if (implodeObjectArray(' || ', '(is_null($' . $objManyToManyReference->VariableName . '->', '))', 'PropertyName', $objManyToManyReferenceTable->PrimaryKeyColumnArray) ?>) + if (implodeObjectArray(' || ', '(is_null($' . $objManyToManyReference->VariableName . '->', '))', 'PropertyName', $objManyToManyReferenceTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call IsObjectDescription ?>Associated on this ClassName ?> with an unsaved ClassName ?>.'); $intRowCount = ClassName ?>::queryCount( @@ -100,7 +100,7 @@ public function isObjectDescription ?>Associated(ObjectDescription ?>AssociatedByKey($key) { - if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call IsObjectDescription ?>AssociatedByKey on this unsaved ClassName ?>.'); $intRowCount = ClassName ?>::queryCount( @@ -121,9 +121,9 @@ public function isObjectDescription ?>AssociatedByK * @return void */ public function associateObjectDescription ?>(VariableType ?> $VariableName ?>) { - if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call AssociateObjectDescription ?> on this unsaved ClassName ?>.'); - if (implodeObjectArray(' || ', '(is_null($' . $objManyToManyReference->VariableName . '->', '))', 'PropertyName', $objManyToManyReferenceTable->PrimaryKeyColumnArray) ?>) + if (implodeObjectArray(' || ', '(is_null($' . $objManyToManyReference->VariableName . '->', '))', 'PropertyName', $objManyToManyReferenceTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call AssociateObjectDescription ?> on this ClassName ?> with an unsaved ClassName ?>.'); // Get the Database Object for this Class @@ -154,7 +154,7 @@ public function associateObjectDescription ?>(ObjectDescription ?>ByKey($OppositeVariableName ?>) { - if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call AssociateObjectDescription ?> on this unsaved ClassName ?>.'); // Get the Database Object for this Class @@ -186,9 +186,9 @@ public function associateObjectDescription ?>ByKey( */ public function unassociateObjectDescription ?>(VariableType ?> $VariableName ?>) { - if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call UnassociateObjectDescription ?> on this unsaved ClassName ?>.'); - if (implodeObjectArray(' || ', '(is_null($' . $objManyToManyReference->VariableName . '->', '))', 'PropertyName', $objManyToManyReferenceTable->PrimaryKeyColumnArray) ?>) + if (implodeObjectArray(' || ', '(is_null($' . $objManyToManyReference->VariableName . '->', '))', 'PropertyName', $objManyToManyReferenceTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call UnassociateObjectDescription ?> on this ClassName ?> with an unsaved ClassName ?>.'); // Get the Database Object for this Class @@ -216,7 +216,7 @@ public function unassociateObjectDescription ?>(ObjectDescriptionPlural ?>() { - if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (implodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call UnassociateAllObjectDescription ?>Array on this unsaved ClassName ?>.'); // Get the Database Object for this Class diff --git a/codegen/templates/db_orm/class_gen/associated_object_type_manytomany.tpl.php b/codegen/templates/db_orm/class_gen/associated_object_type_manytomany.tpl.php index 29bacfa..8365fc5 100644 --- a/codegen/templates/db_orm/class_gen/associated_object_type_manytomany.tpl.php +++ b/codegen/templates/db_orm/class_gen/associated_object_type_manytomany.tpl.php @@ -1,6 +1,6 @@ TypeTableArray[strtolower($objManyToManyReference->AssociatedTable)]; +$objManyToManyReferenceTable = $objCodegen->TypeTableArray[strtolower($objManyToManyReference->AssociatedTable)]; ?> // Related Many-to-Many Object Methods for ObjectDescription; ?> @@ -13,7 +13,7 @@ */ public function getObjectDescription; ?>Array($objOptionalClauses = null) { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray); ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray); ?>) return array(); if($objOptionalClauses) @@ -43,7 +43,7 @@ public function getObjectDescription; ?>Array($objO */ public function countObjectDescriptionPlural; ?>() { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray); ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray); ?>) return 0; // Get the Database Object for this Class @@ -66,7 +66,7 @@ public function countObjectDescriptionPlural; ?>() */ public function isObjectDescription; ?>Associated($intId) { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray); ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray); ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call IsObjectDescription; ?>Associated on this unsaved ClassName; ?>.'); @@ -89,7 +89,7 @@ public function isObjectDescription; ?>Associated($ public function associateObjectDescription; ?>($mixId) { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray); ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray); ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call AssociateObjectDescription; ?> on this unsaved ClassName; ?>.'); @@ -121,7 +121,7 @@ public function associateObjectDescription; ?>($mix */ public function unassociateObjectDescription; ?>($mixId) { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray); ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray); ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call UnassociateObjectDescription; ?> on this unsaved ClassName; ?>.'); // Get the Database Object for this Class @@ -149,7 +149,7 @@ public function unassociateObjectDescription; ?>($m */ public function unassociateAllObjectDescriptionPlural; ?>() { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray); ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray); ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Unable to call UnassociateAllObjectDescription; ?>Array on this unsaved ClassName; ?>.'); // Get the Database Object for this Class diff --git a/codegen/templates/db_orm/class_gen/class_info.tpl.php b/codegen/templates/db_orm/class_gen/class_info.tpl.php index ea07007..8d1a72f 100644 --- a/codegen/templates/db_orm/class_gen/class_info.tpl.php +++ b/codegen/templates/db_orm/class_gen/class_info.tpl.php @@ -30,7 +30,7 @@ public static function getDatabaseName() */ public static function getDatabaseIndex() { - return DatabaseIndex; ?>; + return DatabaseIndex; ?>; } /** diff --git a/codegen/templates/db_orm/class_gen/class_initialize.tpl.php b/codegen/templates/db_orm/class_gen/class_initialize.tpl.php index 6d89e56..067539f 100644 --- a/codegen/templates/db_orm/class_gen/class_initialize.tpl.php +++ b/codegen/templates/db_orm/class_gen/class_initialize.tpl.php @@ -1,5 +1,5 @@ AutoInitialize; + $blnAutoInitialize = $objCodegen->AutoInitialize; if ($blnAutoInitialize) { ?> diff --git a/codegen/templates/db_orm/class_gen/class_load_and_count_methods.tpl.php b/codegen/templates/db_orm/class_gen/class_load_and_count_methods.tpl.php index e06b196..664f6a9 100644 --- a/codegen/templates/db_orm/class_gen/class_load_and_count_methods.tpl.php +++ b/codegen/templates/db_orm/class_gen/class_load_and_count_methods.tpl.php @@ -23,7 +23,7 @@ public static function getDatabase() * @return ClassName ?> */ - public static function load(ParameterListFromColumnArray($objTable->PrimaryKeyColumnArray); ?>, $objOptionalClauses = null) + public static function load(ParameterListFromColumnArray($objTable->PrimaryKeyColumnArray); ?>, $objOptionalClauses = null) { if (!$objOptionalClauses) { PrimaryKeyColumnArray) == 1) { ?> diff --git a/codegen/templates/db_orm/class_gen/copy.tpl.php b/codegen/templates/db_orm/class_gen/copy.tpl.php index 5a80b8d..669df73 100644 --- a/codegen/templates/db_orm/class_gen/copy.tpl.php +++ b/codegen/templates/db_orm/class_gen/copy.tpl.php @@ -44,7 +44,7 @@ public function copy() // Many-to-many references ManyToManyReferenceArray as $objReference) { ?> GetTable($objReference->AssociatedTable); + $objAssociatedTable = $objCodegen->GetTable($objReference->AssociatedTable); $varPrefix = (is_a($objAssociatedTable, \QCubed\Codegen\TypeTable::class) ? '_int' : '_obj'); ?> $objCopy->ObjectDescription ?> = null; diff --git a/codegen/templates/db_orm/class_gen/index_load_array.tpl.php b/codegen/templates/db_orm/class_gen/index_load_array.tpl.php index 729fdd3..24c6b65 100644 --- a/codegen/templates/db_orm/class_gen/index_load_array.tpl.php +++ b/codegen/templates/db_orm/class_gen/index_load_array.tpl.php @@ -1,7 +1,7 @@ -GetColumnArray($objTable, $objIndex->ColumnNameArray); ?> +GetColumnArray($objTable, $objIndex->ColumnNameArray); ?> /** * Load an array of ClassName ?> objects, - * by ImplodeObjectArray(', ', '', '', 'PropertyName', $objCodeGen->GetColumnArray($objTable, $objIndex->ColumnNameArray)) ?> Index(es) + * by ImplodeObjectArray(', ', '', '', 'PropertyName', $objCodegen->GetColumnArray($objTable, $objIndex->ColumnNameArray)) ?> Index(es) * @param VariableType ?> $VariableName ?> @@ -10,9 +10,9 @@ * @throws Caller * @return ClassName ?>[] */ - public static function loadArrayByImplodeObjectArray('', '', '', 'PropertyName', $objColumnArray); ?>(ParameterListFromColumnArray($objColumnArray); ?>, $objOptionalClauses = null) + public static function loadArrayByImplodeObjectArray('', '', '', 'PropertyName', $objColumnArray); ?>(ParameterListFromColumnArray($objColumnArray); ?>, $objOptionalClauses = null) { - // Call ClassName ?>::QueryArray to perform the LoadArrayByImplodeObjectArray('', '', '', 'PropertyName', $objColumnArray); ?> query + // Call ClassName ?>::QueryArray to perform the LoadArrayByImplodeObjectArray('', '', '', 'PropertyName', $objColumnArray); ?> query try { return ClassName; ?>::QueryArray( 1) { ?> @@ -34,16 +34,16 @@ public static function loadArrayByImplodeObjectArray('', '', '' /** * Count ClassNamePlural ?> - * by ImplodeObjectArray(', ', '', '', 'PropertyName', $objCodeGen->GetColumnArray($objTable, $objIndex->ColumnNameArray)) ?> Index(es) + * by ImplodeObjectArray(', ', '', '', 'PropertyName', $objCodegen->GetColumnArray($objTable, $objIndex->ColumnNameArray)) ?> Index(es) * @param VariableType ?> $VariableName ?> * @return int */ - public static function countByImplodeObjectArray('', '', '', 'PropertyName', $objColumnArray); ?>(ParameterListFromColumnArray($objColumnArray); ?>) + public static function countByImplodeObjectArray('', '', '', 'PropertyName', $objColumnArray); ?>(ParameterListFromColumnArray($objColumnArray); ?>) { - // Call ClassName ?>::QueryCount to perform the CountByImplodeObjectArray('', '', '', 'PropertyName', $objColumnArray); ?> query + // Call ClassName ?>::QueryCount to perform the CountByImplodeObjectArray('', '', '', 'PropertyName', $objColumnArray); ?> query return ClassName ?>::QueryCount( 1) { ?> QQ::AndCondition( diff --git a/codegen/templates/db_orm/class_gen/index_load_single.tpl.php b/codegen/templates/db_orm/class_gen/index_load_single.tpl.php index 34a4b8e..5c022bf 100644 --- a/codegen/templates/db_orm/class_gen/index_load_single.tpl.php +++ b/codegen/templates/db_orm/class_gen/index_load_single.tpl.php @@ -1,7 +1,7 @@ -GetColumnArray($objTable, $objIndex->ColumnNameArray); ?> +GetColumnArray($objTable, $objIndex->ColumnNameArray); ?> /** * Load a single ClassName ?> object, - * by ImplodeObjectArray(', ', '', '', 'PropertyName', $objCodeGen->GetColumnArray($objTable, $objIndex->ColumnNameArray)) ?> Index(es) + * by ImplodeObjectArray(', ', '', '', 'PropertyName', $objCodegen->GetColumnArray($objTable, $objIndex->ColumnNameArray)) ?> Index(es) * @param VariableType ?> $VariableName ?> @@ -10,7 +10,7 @@ * @return ClassName ?> */ - public static function loadByImplodeObjectArray('', '', '', 'PropertyName', $objColumnArray); ?>(ParameterListFromColumnArray($objColumnArray); ?>, $objOptionalClauses = null) + public static function loadByImplodeObjectArray('', '', '', 'PropertyName', $objColumnArray); ?>(ParameterListFromColumnArray($objColumnArray); ?>, $objOptionalClauses = null) { return ClassName ?>::QuerySingle( QQ::AndCondition( diff --git a/codegen/templates/db_orm/class_gen/instantiation_methods.tpl.php b/codegen/templates/db_orm/class_gen/instantiation_methods.tpl.php index 3346c6e..bd080ad 100644 --- a/codegen/templates/db_orm/class_gen/instantiation_methods.tpl.php +++ b/codegen/templates/db_orm/class_gen/instantiation_methods.tpl.php @@ -2,7 +2,7 @@ // Preliminary calculations and helper routines here $blnImmediateExpansions = $objTable->HasImmediateArrayExpansions(); - $blnExtendedExpansions = $objTable->HasExtendedArrayExpansions($objCodeGen); + $blnExtendedExpansions = $objTable->HasExtendedArrayExpansions($objCodegen); if (count($objTable->PrimaryKeyColumnArray) > 1 && $blnImmediateExpansions) { @@ -90,7 +90,7 @@ public static function instantiateDbRow( VariableType == \QCubed\Type::BOOLEAN) { ?> $objToReturn->VariableName ?> = $objDbRow->ResolveBooleanValue($mixVal); -getCastString($objColumn)) { ?> +getCastString($objColumn)) { ?> if ($mixVal !== null) { @@ -151,7 +151,7 @@ public static function instantiateDbRow( ColumnArray as $objColumn) { ?> Reference && !$objColumn->Reference->IsType) { ?> // Check for Reference->PropertyName ?> Early Binding - $strAlias = $strAliasPrefix . 'Name ?>__GetTable($objColumn->Reference->Table)->PrimaryKeyColumnArray[0]->Name ?>'; + $strAlias = $strAliasPrefix . 'Name ?>__GetTable($objColumn->Reference->Table)->PrimaryKeyColumnArray[0]->Name ?>'; $strAliasName = !empty($strColumnAliasArray[$strAlias]) ? $strColumnAliasArray[$strAlias] : $strAlias; if (isset ($strColumns[$strAliasName])) { $objExpansionNode = (empty($objExpansionAliasArray['Name ?>']) ? null : $objExpansionAliasArray['Name ?>']); @@ -166,7 +166,7 @@ public static function instantiateDbRow( ReverseReferenceArray as $objReference) { ?>Unique) { ?> // Check for ObjectDescription ?> Unique ReverseReference Binding - $strAlias = $strAliasPrefix . 'ObjectDescription) ?>__GetTable($objReference->Table)->PrimaryKeyColumnArray[0]->Name ?>'; + $strAlias = $strAliasPrefix . 'ObjectDescription) ?>__GetTable($objReference->Table)->PrimaryKeyColumnArray[0]->Name ?>'; $strAliasName = !empty($strColumnAliasArray[$strAlias]) ? $strColumnAliasArray[$strAlias] : $strAlias; if (array_key_exists ($strAliasName, $strColumns)) { if (!is_null($strColumns[$strAliasName])) { @@ -184,7 +184,7 @@ public static function instantiateDbRow( ManyToManyReferenceArray as $objReference) { ?> GetTable($objReference->AssociatedTable); +$objAssociatedTable = $objCodegen->GetTable($objReference->AssociatedTable); if (is_a($objAssociatedTable, '\QCubed\Codegen\TypeTable') ) { $blnIsType = true; $varPrefix = '_int'; @@ -194,7 +194,7 @@ public static function instantiateDbRow( } ?> // Check for ObjectDescription ?> Virtual Binding - $strAlias = $strAliasPrefix . 'ObjectDescription) ?>__OppositeColumn ?>__GetTable($objReference->AssociatedTable)->PrimaryKeyColumnArray[0]->Name ?>'; + $strAlias = $strAliasPrefix . 'ObjectDescription) ?>__OppositeColumn ?>__GetTable($objReference->AssociatedTable)->PrimaryKeyColumnArray[0]->Name ?>'; $strAliasName = !empty($strColumnAliasArray[$strAlias]) ? $strColumnAliasArray[$strAlias] : $strAlias; $objExpansionNode = (empty($objExpansionAliasArray['ObjectDescription) ?>']) ? null : $objExpansionAliasArray['ObjectDescription) ?>']); $blnExpanded = ($objExpansionNode && $objExpansionNode->ExpandAsArray); @@ -225,7 +225,7 @@ public static function instantiateDbRow( ReverseReferenceArray as $objReference) { ?>Unique) { ?> // Check for ObjectDescription ?> Virtual Binding - $strAlias = $strAliasPrefix . 'ObjectDescription) ?>__GetTable($objReference->Table)->PrimaryKeyColumnArray[0]->Name ?>'; + $strAlias = $strAliasPrefix . 'ObjectDescription) ?>__GetTable($objReference->Table)->PrimaryKeyColumnArray[0]->Name ?>'; $strAliasName = !empty($strColumnAliasArray[$strAlias]) ? $strColumnAliasArray[$strAlias] : $strAlias; $objExpansionNode = (empty($objExpansionAliasArray['ObjectDescription) ?>']) ? null : $objExpansionAliasArray['ObjectDescription) ?>']); $blnExpanded = ($objExpansionNode && $objExpansionNode->ExpandAsArray); diff --git a/codegen/templates/db_orm/class_gen/json_methods.tpl.php b/codegen/templates/db_orm/class_gen/json_methods.tpl.php index d1aa9da..0ae8781 100644 --- a/codegen/templates/db_orm/class_gen/json_methods.tpl.php +++ b/codegen/templates/db_orm/class_gen/json_methods.tpl.php @@ -91,7 +91,7 @@ public function jsonSerialize () ManyToManyReferenceArray as $objReference) { ?> GetTable($objReference->AssociatedTable); + $objAssociatedTable = $objCodegen->GetTable($objReference->AssociatedTable); $varPrefix = (is_a($objAssociatedTable, '\QCubed\Codegen\TypeTable') ? '_int' : '_obj'); ?> if (isset($this->ObjectDescription ?>)) { diff --git a/codegen/templates/db_orm/class_gen/object_delete.tpl.php b/codegen/templates/db_orm/class_gen/object_delete.tpl.php index 383dba8..a7abb07 100644 --- a/codegen/templates/db_orm/class_gen/object_delete.tpl.php +++ b/codegen/templates/db_orm/class_gen/object_delete.tpl.php @@ -6,7 +6,7 @@ */ public function delete() { - if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) + if (ImplodeObjectArray(' || ', '(is_null($this->', '))', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>) throw new \QCubed\Database\Exception\UndefinedPrimaryKey('Cannot delete this ClassName ?> with an unset primary key.'); // Get the Database Object for this Class @@ -15,7 +15,7 @@ public function delete() ReverseReferenceArray as $objReverseReference) { ?> Unique) { ?> NotNull) { ?> -TableArray[strtolower($objReverseReference->Table)]; ?> +TableArray[strtolower($objReverseReference->Table)]; ?> ColumnArray[strtolower($objReverseReference->Column)]; ?> @@ -23,12 +23,12 @@ public function delete() // Optional -- if you **KNOW** that you do not want to EVER run any level of business logic on the disassociation, // you *could* override Delete() so that this step can be a single hard coded query to optimize performance. - if ($objAssociated = VariableType ?>::LoadByPropertyName ?>(ImplodeObjectArray(', ', '$this->', '', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>)) { + if ($objAssociated = VariableType ?>::LoadByPropertyName ?>(ImplodeObjectArray(', ', '$this->', '', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>)) { $objAssociated->PropertyName ?> = null; $objAssociated->Save(); } NotNull) { ?> -TableArray[strtolower($objReverseReference->Table)]; ?> +TableArray[strtolower($objReverseReference->Table)]; ?> ColumnArray[strtolower($objReverseReference->Column)]; ?> @@ -36,7 +36,7 @@ public function delete() // Optional -- if you **KNOW** that you do not want to EVER run any level of business logic on the disassociation, // you *could* override Delete() so that this step can be a single hard coded query to optimize performance. - if ($objAssociated = VariableType ?>::LoadByPropertyName ?>(ImplodeObjectArray(', ', '$this->', '', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>)) { + if ($objAssociated = VariableType ?>::LoadByPropertyName ?>(ImplodeObjectArray(', ', '$this->', '', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>)) { $objAssociated->Delete(); } diff --git a/codegen/templates/db_orm/class_gen/object_save.tpl.php b/codegen/templates/db_orm/class_gen/object_save.tpl.php index ef15af8..765d00e 100644 --- a/codegen/templates/db_orm/class_gen/object_save.tpl.php +++ b/codegen/templates/db_orm/class_gen/object_save.tpl.php @@ -204,14 +204,14 @@ protected function update($blnForceUpdate = false) ReverseReferenceArray as $objReverseReference) { ?> Unique) { ?> -TableArray[strtolower($objReverseReference->Table)]; ?> +TableArray[strtolower($objReverseReference->Table)]; ?> ColumnArray[strtolower($objReverseReference->Column)]; ?> // Update the foreign key in the ObjectDescription ?> object (if applicable) if ($this->blnDirtyObjectPropertyName ?>) { // Unassociate the old one (if applicable) - if ($objAssociated = VariableType ?>::LoadByPropertyName ?>(ImplodeObjectArray(', ', '$this->', '', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>)) { + if ($objAssociated = VariableType ?>::LoadByPropertyName ?>(ImplodeObjectArray(', ', '$this->', '', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>)) { // TODO: Select and update only the foreign key rather than the whole record $objAssociated->PropertyName ?> = null; $objAssociated->save(); diff --git a/codegen/templates/db_orm/class_gen/pk_support.tpl.php b/codegen/templates/db_orm/class_gen/pk_support.tpl.php index d9b8a45..59f7f94 100644 --- a/codegen/templates/db_orm/class_gen/pk_support.tpl.php +++ b/codegen/templates/db_orm/class_gen/pk_support.tpl.php @@ -54,7 +54,7 @@ protected static function getRowPrimaryKey(\QCubed\Database\RowBase $objDbRow, $ $strAliasName = !empty($strColumnAliasArray[$strAlias]) ? $strColumnAliasArray[$strAlias] : $strAlias; $strColumns = $objDbRow->GetColumnNameArray(); $mixVal = (isset ($strColumns[$strAliasName]) ? $strColumns[$strAliasName] : null); - PrimaryKeyColumnArray[0])) echo $s; ?> + PrimaryKeyColumnArray[0])) echo $s; ?> return $mixVal; @@ -64,7 +64,7 @@ protected static function getRowPrimaryKey(\QCubed\Database\RowBase $objDbRow, $ $strAliasName = !empty($strColumnAliasArray[$strAlias]) ? $strColumnAliasArray[$strAlias] : $strAlias; $mixVal = (isset ($strColumns[$strAliasName]) ? $strColumns[$strAliasName] : null); if ($mixVal === null) return null; - + $values[] = $mixVal; diff --git a/codegen/templates/db_orm/class_gen/property_comments.tpl.php b/codegen/templates/db_orm/class_gen/property_comments.tpl.php index 224f8d5..5c43308 100644 --- a/codegen/templates/db_orm/class_gen/property_comments.tpl.php +++ b/codegen/templates/db_orm/class_gen/property_comments.tpl.php @@ -19,7 +19,7 @@ ManyToManyReferenceArray as $objReference) { ?> GetTable($objReference->AssociatedTable); + $objAssociatedTable = $objCodegen->GetTable($objReference->AssociatedTable); $varPrefix = (is_a($objAssociatedTable, '\QCubed\Codegen\TypeTable') ? '_int' : '_obj'); $varType = (is_a($objAssociatedTable, '\QCubed\Codegen\TypeTable') ? 'integer' : $objReference->VariableType); diff --git a/codegen/templates/db_orm/class_gen/property_get.tpl.php b/codegen/templates/db_orm/class_gen/property_get.tpl.php index dd88747..9424d43 100644 --- a/codegen/templates/db_orm/class_gen/property_get.tpl.php +++ b/codegen/templates/db_orm/class_gen/property_get.tpl.php @@ -18,7 +18,7 @@ public function __get($strName) ManyToManyReferenceArray as $objReference) { ?> GetTable($objReference->AssociatedTable); + $objAssociatedTable = $objCodegen->GetTable($objReference->AssociatedTable); $varPrefix = (is_a($objAssociatedTable, '\QCubed\Codegen\TypeTable') ? '_int' : '_obj'); $varType = (is_a($objAssociatedTable, '\QCubed\Codegen\TypeTable') ? 'integer' : $objReference->VariableType); ?> diff --git a/codegen/templates/db_orm/class_gen/property_getters_setters.tpl.php b/codegen/templates/db_orm/class_gen/property_getters_setters.tpl.php index cd91281..2dd3bde 100644 --- a/codegen/templates/db_orm/class_gen/property_getters_setters.tpl.php +++ b/codegen/templates/db_orm/class_gen/property_getters_setters.tpl.php @@ -119,12 +119,12 @@ public function setReference->PropertyName ?>($R $Reference->VariableName ?> = Type::Cast($Reference->VariableName ?>, 'Reference->VariableType ?>'); // Make sure its a SAVED Reference->VariableType ?> object - if (is_null($Reference->VariableName ?>->TableArray[strtolower($objColumn->Reference->Table)]->ColumnArray[strtolower($objColumn->Reference->Column)]->PropertyName ?>)) { + if (is_null($Reference->VariableName ?>->TableArray[strtolower($objColumn->Reference->Table)]->ColumnArray[strtolower($objColumn->Reference->Column)]->PropertyName ?>)) { throw new Caller('Unable to set an unsaved Reference->PropertyName ?> for this ClassName ?>'); } // Update Local Member Variables - $this->setPropertyName ?>($Reference->VariableName ?>->getTableArray[strtolower($objColumn->Reference->Table)]->ColumnArray[strtolower($objColumn->Reference->Column)]->PropertyName ?>()); + $this->setPropertyName ?>($Reference->VariableName ?>->getTableArray[strtolower($objColumn->Reference->Table)]->ColumnArray[strtolower($objColumn->Reference->Column)]->PropertyName ?>()); $this->Reference->VariableName ?> = $Reference->VariableName ?>; } return $this; @@ -138,7 +138,7 @@ public function setReference->PropertyName ?>($R // Unique reverse reference properties foreach ($objTable->ReverseReferenceArray as $objReverseReference) { if ($objReverseReference->Unique) { - $objReverseReferenceTable = $objCodeGen->TableArray[strtolower($objReverseReference->Table)]; + $objReverseReferenceTable = $objCodegen->TableArray[strtolower($objReverseReference->Table)]; $objReverseReferenceColumn = $objReverseReferenceTable->ColumnArray[strtolower($objReverseReference->Column)]; ?> /** @@ -156,7 +156,7 @@ public function getObjectPropertyName ?>() { return null; } if (!$this->ObjectMemberVariable ?>) { - $this->ObjectMemberVariable ?> = VariableType ?>::LoadByPropertyName ?>(ImplodeObjectArray(', ', '$this->', '', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>); + $this->ObjectMemberVariable ?> = VariableType ?>::LoadByPropertyName ?>(ImplodeObjectArray(', ', '$this->', '', 'VariableName', $objTable->PrimaryKeyColumnArray) ?>); } return $this->ObjectMemberVariable ?>; } @@ -180,7 +180,7 @@ public function setObjectPropertyName ?>($ObjectMemberVariable ?> = \QCubed\Type::Cast($ObjectMemberVariable ?>, 'VariableType ?>'); // Are we setting ObjectMemberVariable ?> to a DIFFERENT $ObjectMemberVariable ?>? - if ((!$this->ObjectPropertyName ?>) || ($this->ObjectPropertyName ?>->GetTable($objReverseReference->Table)->PrimaryKeyColumnArray[0]->PropertyName ?> != $ObjectMemberVariable ?>->GetTable($objReverseReference->Table)->PrimaryKeyColumnArray[0]->PropertyName ?>)) { + if ((!$this->ObjectPropertyName ?>) || ($this->ObjectPropertyName ?>->GetTable($objReverseReference->Table)->PrimaryKeyColumnArray[0]->PropertyName ?> != $ObjectMemberVariable ?>->GetTable($objReverseReference->Table)->PrimaryKeyColumnArray[0]->PropertyName ?>)) { // Yes -- therefore, set the "Dirty" flag to true // to make sure we update the adjoined VariableType ?> object the next time we call Save() $this->blnDirtyObjectPropertyName ?> = true; diff --git a/codegen/templates/db_orm/class_gen/protected_member_variables.tpl.php b/codegen/templates/db_orm/class_gen/protected_member_variables.tpl.php index a01010f..d337fad 100644 --- a/codegen/templates/db_orm/class_gen/protected_member_variables.tpl.php +++ b/codegen/templates/db_orm/class_gen/protected_member_variables.tpl.php @@ -14,7 +14,7 @@ * @var VariableType ?> VariableName ?> */ -PrivateColumnVars) { ?> +PrivateColumnVars) { ?> private $VariableName ?>; protected $VariableName ?>; @@ -67,7 +67,7 @@ ManyToManyReferenceArray as $objReference) { ?> GetTable($objReference->AssociatedTable); + $objAssociatedTable = $objCodegen->GetTable($objReference->AssociatedTable); if (is_a($objAssociatedTable, '\QCubed\Codegen\TypeTable')) { ?> /** diff --git a/codegen/templates/db_orm/class_gen/qcubed_query_classes.tpl.php b/codegen/templates/db_orm/class_gen/qcubed_query_classes.tpl.php index ae13050..f9ebec5 100644 --- a/codegen/templates/db_orm/class_gen/qcubed_query_classes.tpl.php +++ b/codegen/templates/db_orm/class_gen/qcubed_query_classes.tpl.php @@ -98,7 +98,7 @@ public function primaryKeyFields() { * @return AbstractDatabase */ protected function database() { - return \QCubed\Database\Service::getDatabase(DatabaseIndex; ?>); + return \QCubed\Database\Service::getDatabase(DatabaseIndex; ?>); } diff --git a/codegen/templates/db_orm/class_subclass/_main.tpl.php b/codegen/templates/db_orm/class_subclass/_main.tpl.php index d7175b9..b2a09fa 100644 --- a/codegen/templates/db_orm/class_subclass/_main.tpl.php +++ b/codegen/templates/db_orm/class_subclass/_main.tpl.php @@ -1,6 +1,6 @@ false, diff --git a/codegen/templates/db_orm/class_subclass/example_initialization.tpl.php b/codegen/templates/db_orm/class_subclass/example_initialization.tpl.php index 3c87c04..bd087d3 100644 --- a/codegen/templates/db_orm/class_subclass/example_initialization.tpl.php +++ b/codegen/templates/db_orm/class_subclass/example_initialization.tpl.php @@ -1,5 +1,5 @@ AutoInitialize; +$blnAutoInitialize = $objCodegen->AutoInitialize; if (!$blnAutoInitialize) { ?> diff --git a/codegen/templates/db_type/class_gen/_main.tpl.php b/codegen/templates/db_type/class_gen/_main.tpl.php index fcfdfd7..c2398b8 100644 --- a/codegen/templates/db_type/class_gen/_main.tpl.php +++ b/codegen/templates/db_type/class_gen/_main.tpl.php @@ -1,6 +1,6 @@ true, diff --git a/codegen/templates/db_type/class_subclass/_main.tpl.php b/codegen/templates/db_type/class_subclass/_main.tpl.php index b7be326..e8f99d1 100644 --- a/codegen/templates/db_type/class_subclass/_main.tpl.php +++ b/codegen/templates/db_type/class_subclass/_main.tpl.php @@ -1,6 +1,6 @@ false, diff --git a/install/project/codegen/templates/README.md b/install/project/codegen/templates/README.md index ed3d01d..6f15bcd 100644 --- a/install/project/codegen/templates/README.md +++ b/install/project/codegen/templates/README.md @@ -9,7 +9,7 @@ If there are any template files in this directory in *addition* to the ones in `/includes/qcubed/_core/codegen/templates`, these additional template files will be processed as well. -Feel free to add as you wish. Just remember the naming structure for CodeGen +Feel free to add as you wish. Just remember the naming structure for Codegen template files: `/includes/qcubed/_core/codegen/templates/[TYPE]/[MODULE]/[FILE]` diff --git a/install/project/includes/configuration/README.md b/install/project/includes/configuration/README.md index 401c625..5a043a8 100644 --- a/install/project/includes/configuration/README.md +++ b/install/project/includes/configuration/README.md @@ -40,7 +40,7 @@ separate out your hand written code from the generated code, and continue to twe The codegen process starts at the QCubed start screen by clicking on the codegen link. PHP is executed to generate the files. Therefore, the target directories for codegen will need to be writable by the web server process. -The codegen process works by instantiating a CodeGen object. This object then looks in the template directories and begins +The codegen process works by instantiating a Codegen object. This object then looks in the template directories and begins to include the php files there that start with an underscore (_). These templates then include other files, which in turn may include other template files. This combination will eventually generate the forms, model connectors, and data table interface classes that you will base your application on. diff --git a/install/project/includes/configuration/active/1database.cfg.php b/install/project/includes/configuration/active/1database.cfg.php index f6fd436..39dbc29 100644 --- a/install/project/includes/configuration/active/1database.cfg.php +++ b/install/project/includes/configuration/active/1database.cfg.php @@ -23,7 +23,7 @@ * NOTE: Profiling should only be enabled when you are actively wanting to profile a * specific PHP script or scripts. Because of SIGNIFICANT performance degradation, * it should otherwise always be OFF. - * "ScriptPath": you can have CodeGen virtually add additional FKs, even though they are + * "ScriptPath": you can have Codegen virtually add additional FKs, even though they are * not defined as a DB constraint in the database, by using a script to define what * those constraints are. The path of the script can be defined here. - default is blank or none * Note: any option not used or set to blank will result in using the default value for that option diff --git a/install/project/includes/configuration/codegen_settings.xml b/install/project/includes/configuration/codegen_settings.xml index 618f407..d591b41 100644 --- a/install/project/includes/configuration/codegen_settings.xml +++ b/install/project/includes/configuration/codegen_settings.xml @@ -2,10 +2,10 @@ - + @@ -52,7 +52,7 @@ privateColumnVars="true" /> - + - + @@ -40,7 +40,7 @@ - +