Index: trunk/core/kernel/kbase.php =================================================================== diff -u -N -r7635 -r8061 --- trunk/core/kernel/kbase.php (.../kbase.php) (revision 7635) +++ trunk/core/kernel/kbase.php (.../kbase.php) (revision 8061) @@ -362,7 +362,12 @@ $this->IDField = $field_name; } - function Configure() + /** + * Performs initial object configuration + * + * @param bool $populate_ml_fields create all ml fields from db in config or not + */ + function Configure($populate_ml_fields = false) { $this->setTableName( $this->Application->getUnitOption($this->Prefix, 'TableName') ); $this->setIDField( $this->Application->getUnitOption($this->Prefix, 'IDField') ); @@ -371,7 +376,8 @@ $this->ApplyFieldModifiers(); // should be called only after all fields definitions been set $this->prepareConfigOptions(); // this should go last, but before setDefaultValues, order is significant! - $this->SetDefaultValues(); + + $this->SetDefaultValues($populate_ml_fields); } /** @@ -464,7 +470,7 @@ } } - function SetDefaultValues() + function SetDefaultValues($populate_ml_fields = false) { foreach($this->Fields as $field => $options) {