diff --git a/.gitignore b/.gitignore
index 30362bf99..a4deef11b 100755
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-bproject
+nbproject/*
workflow/engine/config/paths_installed.php
gulliver/thirdparty/html2ps_pdf/cache
workflow/engine/content/languages/translations.environments
diff --git a/Rakefile b/Rakefile
index 6794d1e2e..8c314a6fc 100644
--- a/Rakefile
+++ b/Rakefile
@@ -192,7 +192,7 @@ def buildPmdynaform(homeDir, targetDir, mode)
template += s
end
- htmlTemplates=["cases_Step_Pmdynaform.html","cases_Step_Pmdynaform_Preview.html","cases_Step_Pmdynaform_View.html"]
+ htmlTemplates=["pmdynaform.html"]
htmlTemplates.each do |htmlTemplate|
FileUtils.cp("#{Dir.pwd}/workflow/engine/templates/cases/#{htmlTemplate}", "#{pmdynaformDir}/build/#{htmlTemplate}")
diff --git a/framework/src/Maveriks/Extension/Restler/UploadFormat.php b/framework/src/Maveriks/Extension/Restler/UploadFormat.php
index feb03b9e1..be0e01655 100644
--- a/framework/src/Maveriks/Extension/Restler/UploadFormat.php
+++ b/framework/src/Maveriks/Extension/Restler/UploadFormat.php
@@ -20,16 +20,7 @@ class UploadFormat extends Format
*
* @var array
*/
- public static $allowedMimeTypes = array(
- 'image/jpeg',
- 'image/png',
- 'image/png',
- 'application/octet-stream',
- 'text/plain',
- 'text/xml',
- 'text/html',
- 'text/css'
- );
+ public static $allowedMimeTypes = array();
/**
* use it to restrict uploads based on file size
* set it to 0 to allow all sizes
@@ -40,7 +31,7 @@ class UploadFormat extends Format
*
* @var int
*/
- public static $maximumFileSize = 1048576;
+ public static $maximumFileSize = 0;
/**
* Your own validation function for validating each uploaded file
* it can return false or throw an exception for invalid file
diff --git a/framework/src/Maveriks/WebApplication.php b/framework/src/Maveriks/WebApplication.php
index 20f718b77..7a9359708 100644
--- a/framework/src/Maveriks/WebApplication.php
+++ b/framework/src/Maveriks/WebApplication.php
@@ -296,6 +296,11 @@ class WebApplication
list($host, $port) = strpos(DB_HOST, ':') !== false ? explode(':', DB_HOST) : array(DB_HOST, '');
$port = empty($port) ? '' : ";port=$port";
Services\OAuth2\Server::setDatabaseSource(DB_USER, DB_PASS, DB_ADAPTER.":host=$host;dbname=".DB_NAME.$port);
+ if (DB_NAME != DB_RBAC_NAME) { //it's PM < 3
+ list($host, $port) = strpos(DB_RBAC_HOST, ':') !== false ? explode(':', DB_RBAC_HOST) : array(DB_RBAC_HOST, '');
+ $port = empty($port) ? '' : ";port=$port";
+ Services\OAuth2\Server::setDatabaseSourceRBAC(DB_RBAC_USER, DB_RBAC_PASS, DB_ADAPTER.":host=$host;dbname=".DB_RBAC_NAME.$port);
+ }
// Setting default OAuth Client id, for local PM Web Designer
Services\OAuth2\Server::setPmClientId($pmOauthClientId);
diff --git a/gulliver/js/codemirror/addon/hint/php-hint.js b/gulliver/js/codemirror/addon/hint/php-hint.js
index 9723cb250..320dfe2a8 100644
--- a/gulliver/js/codemirror/addon/hint/php-hint.js
+++ b/gulliver/js/codemirror/addon/hint/php-hint.js
@@ -24,7 +24,7 @@
var sToken = token.string.trim();
if ( sToken == "(") {
- token = tprop = getToken(editor, Pos(cur.line, tprop.start));
+ token = tprop = getToken(editor, Pos(cur.line, tprop.start));
return {list: getCompletions(token.string, keywords, options),
from: Pos(cur.line, token.start),
to: Pos(cur.line, token.end + 1)};
@@ -244,22 +244,22 @@
}
arrayFunction = arrayFunctions[functionName];
-
+
if (arrayFunction != undefined) {
forEach( arrayFunction, yesAdd);
} else {
if (functionName.trim() == "") {
- forEach (phpKeywords, yesAdd);
- forEach (keywords, yesAdd);
+ forEach (phpKeywords, yesAdd);
+ forEach (keywords, yesAdd);
} else if (functionName == "=") {
- forEach (phpPMFunctions, yesAdd);
+ forEach (phpPMFunctions, yesAdd);
} else {
- for (index = 0; index < phpKeywords.length; index++) {
- if ( phpKeywords[index].indexOf(functionName) == 0 ) {
- found.push(phpKeywords[index]);
- }
- }
- forEach(keywords, maybeAdd);
+ for (index = 0; index < phpKeywords.length; index++) {
+ if ( phpKeywords[index].indexOf(functionName) == 0 ) {
+ found.push(phpKeywords[index]);
+ }
+ }
+ forEach(keywords, maybeAdd);
}
}
return found;
diff --git a/gulliver/system/class.dvEditor.php b/gulliver/system/class.dvEditor.php
index af447c5ab..1068c8347 100755
--- a/gulliver/system/class.dvEditor.php
+++ b/gulliver/system/class.dvEditor.php
@@ -55,7 +55,7 @@ class XmlForm_Field_HTML extends XmlForm_Field
* @return string
*
*/
- public function render ($value, $owner = null)
+ public function render($value = null, $owner = null)
{
$value = ($value == '') ? '
' : $value;
$html = "
| " . $headData["CASE"] . " #: " . $headData["APP_NUMBER"] . " " . $headData["TITLE"] . ": " . $headData["APP_TITLE"] . " | \n" . + "
\n" .
+ " \n" .
+ " Next Step\n" .
+ " \n" .
+ ""; + echo G::json_encode(array($this->app_data, $this->data)); + echo ""; + } + } + } diff --git a/workflow/engine/classes/class.pmFunctions.php b/workflow/engine/classes/class.pmFunctions.php index 949a8a034..78dd3f11f 100755 --- a/workflow/engine/classes/class.pmFunctions.php +++ b/workflow/engine/classes/class.pmFunctions.php @@ -885,7 +885,7 @@ function PMFSendMessage( if ($result->status_code == 0) { return 1; } else { - error_log($result->message); + error_log($result->message); return 0; } } @@ -1235,7 +1235,7 @@ function WSInformationUser($userUid) * * @method * - * Returns the unique ID for the current active session. + * Returns the unique ID for the current login session. * * @name WSGetSession * @label WS Get Session @@ -1400,10 +1400,10 @@ function WSUnpauseCase ($caseUid, $delIndex, $userUid) * * @method * - * Add case note. + * Add a case note. * - * @name WSAddCaseNote - * @label WS Add case note + * @name WSAddACaseNote + * @label WS Add a case note * @link http://wiki.processmaker.com/index.php/ProcessMaker_Functions#WSAddCaseNote.28.29 * * @param string(32) | $caseUid | ID of the case | The unique ID of the case. @@ -1537,10 +1537,10 @@ function PMFUserList () //its test was successfull /** * @method * - * Add a input document. + * Add an Input Document. * - * @name PMFAddInputDocument - * @label PMF Add a input document + * @name PMFAddAnInputDocument + * @label PMF Add an input document * @link http://wiki.processmaker.com/index.php/ProcessMaker_Functions#PMFAddInputDocument.28.29 * * @param string(32) | $inputDocumentUid | ID of the input document | The unique ID of the input document. @@ -1552,7 +1552,7 @@ function PMFUserList () //its test was successfull * @param string(32) | $caseUid | ID of the case | The unique ID of the case. * @param int | $delIndex | Delegation index of the case | The delegation index of the current task in the case. * @param string(32) | $taskUid | ID of the task | The unique ID of the task. - * @param string(32) | $userUid | ID user | The unique ID of the user who will add a input document. + * @param string(32) | $userUid | ID user | The unique ID of the user who will add an input document. * @param string | $option = "file" | Option | Option, value: "file". * @param string | $file = "path_to_file/myfile.txt" | File, path to file | File, path to file. * @return string | $appDocUid | ID of the application document | Returns ID if it has added the input document successfully; otherwise, returns null or empty if an error occurred. @@ -2061,7 +2061,7 @@ function PMFNewCase ($processId, $userId, $taskId, $variables) * * @method * - * Assigns a user to a group. + * * * Assigns a user to a group. Note that the logged-in user must have the PM_USERS permission in his/her role to be able to assign a user to a group. * @@ -2466,7 +2466,7 @@ function PMFGetNextAssignedUser ($application, $task, $delIndex = null, $userUid /** * @method * - * Returns a list or user. + * Returns the email address of the specified user. * * @name PMFGetUserEmailAddress * @label PMF Get User Email Address @@ -2773,8 +2773,8 @@ function PMFUnpauseCase ($caseUid, $delIndex, $userUid) * * Add case note. * - * @name PMFAddCaseNote - * @label PMF Add case note + * @name PMFAddACaseNote + * @label PMF Add a case note * @link http://wiki.processmaker.com/index.php/ProcessMaker_Functions#PMFAddCaseNote.28.29 * * @param string(32) | $caseUid | ID of the case | The unique ID of the case. @@ -2845,7 +2845,7 @@ function PMFAddAttachmentToArray($arrayData, $index, $value, $suffix = " Copy({i /** *@method * - * It delete the mask a field. + * Removes the currency symbol and thousands separator inserted by a currency mask. * * @name PMFRemoveMask * @label PMF Remove Mask diff --git a/workflow/engine/classes/class.pmScript.php b/workflow/engine/classes/class.pmScript.php index 1e9d16d70..326f7d8d5 100644 --- a/workflow/engine/classes/class.pmScript.php +++ b/workflow/engine/classes/class.pmScript.php @@ -491,6 +491,9 @@ class PMScript } } $sScript .= substr( $this->sScript, $iAux ); + if(preg_match('/\b(or|and|xor)\b/i' , $sScript)) { + $sScript = "( ".$sScript." )"; + } $sScript = '$bResult = ' . $sScript . ';'; // checks if the syntax is valid or if the variables in that condition has been previously defined if ($this->validSyntax( $sScript ) && $variableIsDefined) { diff --git a/workflow/engine/classes/class.processes.php b/workflow/engine/classes/class.processes.php index 4f7dfeb8d..3f0d72746 100755 --- a/workflow/engine/classes/class.processes.php +++ b/workflow/engine/classes/class.processes.php @@ -888,12 +888,18 @@ class Processes $oData->uid["TASK"] = $map; if (isset( $oData->routes ) && is_array( $oData->routes )) { - foreach ($oData->routes as $key => $val) { - $newGuid = $map[$val['TAS_UID']]; - $oData->routes[$key]['TAS_UID'] = $newGuid; - if (strlen( $val['ROU_NEXT_TASK'] ) > 0 && $val['ROU_NEXT_TASK'] > 0) { - $newGuid = $map[$val['ROU_NEXT_TASK']]; - $oData->routes[$key]['ROU_NEXT_TASK'] = $newGuid; + foreach ($oData->routes as $key => $value) { + $record = $value; + + if (isset($map[$record["TAS_UID"]])) { + $newUid = $map[$record["TAS_UID"]]; + + $oData->routes[$key]["TAS_UID"] = $newUid; + + if (strlen($record["ROU_NEXT_TASK"]) > 0 && $record["ROU_NEXT_TASK"] > 0) { + $newUid = $map[$record["ROU_NEXT_TASK"]]; + $oData->routes[$key]["ROU_NEXT_TASK"] = $newUid; + } } } } @@ -1510,9 +1516,20 @@ class Processes { foreach ($SubProcess as $key => $row) { $oSubProcess = new SubProcess(); - if ($oSubProcess->subProcessExists( $row['SP_UID'] )) { - $oSubProcess->remove( $row['SP_UID'] ); - } + + //if ($oSubProcess->subProcessExists( $row['SP_UID'] )) { + // $oSubProcess->remove( $row['SP_UID'] ); + //} + + //Delete + $criteria = new Criteria("workflow"); + + $criteria->add(SubProcessPeer::PRO_PARENT, $row["PRO_PARENT"], Criteria::EQUAL); + $criteria->add(SubProcessPeer::TAS_PARENT, $row["TAS_PARENT"], Criteria::EQUAL); + + $result = SubProcessPeer::doDelete($criteria); + + //Create $res = $oSubProcess->create( $row ); } return; @@ -2273,14 +2290,16 @@ class Processes try { $map = array(); - foreach ($data->messageType as $key => $value) { - $record = $value; + if (isset($data->messageType)) { + foreach ($data->messageType as $key => $value) { + $record = $value; - if (isset($record["MSGT_UID"])) { - $newUid = $this->getUnusedMessageTypeUid(); + if (isset($record["MSGT_UID"])) { + $newUid = $this->getUnusedMessageTypeUid(); - $map[$record["MSGT_UID"]] = $newUid; - $data->messageType[$key]["MSGT_UID"] = $newUid; + $map[$record["MSGT_UID"]] = $newUid; + $data->messageType[$key]["MSGT_UID"] = $newUid; + } } } @@ -2297,6 +2316,19 @@ class Processes } } } + + //Message-Envent-Definition + if (isset($data->messageEventDefinition)) { + foreach ($data->messageEventDefinition as $key => $value) { + $record = $value; + + if (isset($map[$record["MSGT_UID"]])) { + $newUid = $map[$record["MSGT_UID"]]; + + $data->messageEventDefinition[$key]["MSGT_UID"] = $newUid; + } + } + } } catch (Exception $e) { throw $e; } @@ -2314,14 +2346,16 @@ class Processes try { $map = array(); - foreach ($data->messageTypeVariable as $key => $value) { - $record = $value; + if (isset($data->messageTypeVariable)) { + foreach ($data->messageTypeVariable as $key => $value) { + $record = $value; - if (isset($record["MSGTV_UID"])) { - $newUid = $this->getUnusedMessageTypeVariableUid(); + if (isset($record["MSGTV_UID"])) { + $newUid = $this->getUnusedMessageTypeVariableUid(); - $map[$record["MSGTV_UID"]] = $newUid; - $data->messageTypeVariable[$key]["MSGTV_UID"] = $newUid; + $map[$record["MSGTV_UID"]] = $newUid; + $data->messageTypeVariable[$key]["MSGTV_UID"] = $newUid; + } } } @@ -3077,6 +3111,39 @@ class Processes } } + public function getMessageEventDefinitions($processUid) + { + try { + $arrayMessageEventDefinition = array(); + + $messageEventDefinition = new \ProcessMaker\BusinessModel\MessageEventDefinition(); + + //Get data + $criteria = new Criteria("workflow"); + + $criteria->addSelectColumn(MessageEventDefinitionPeer::MSGED_UID); + $criteria->add(MessageEventDefinitionPeer::PRJ_UID, $processUid, Criteria::EQUAL); + + $rsCriteria = MessageEventDefinitionPeer::doSelectRS($criteria); + $rsCriteria->setFetchmode(ResultSet::FETCHMODE_ASSOC); + + while ($rsCriteria->next()) { + $row = $rsCriteria->getRow(); + + $arrayData = $messageEventDefinition->getMessageEventDefinition($row["MSGED_UID"], true); + + $arrayData["MSGED_VARIABLES"] = serialize($arrayData["MSGED_VARIABLES"]); + + $arrayMessageEventDefinition[] = $arrayData; + } + + //Return + return $arrayMessageEventDefinition; + } catch (Exception $e) { + throw $e; + } + } + /** * Get Task User Rows from an array of data * @@ -3318,6 +3385,31 @@ class Processes } } + /** + * Create Message-Event-Definition records + * + * @param string $processUid Unique id of Process + * @param array $arrayData Data + * + * return void + */ + public function createMessageEventDefinition($processUid, array $arrayData) + { + try { + $messageEventDefinition = new \ProcessMaker\BusinessModel\MessageEventDefinition(); + + foreach ($arrayData as $value) { + $record = $value; + + $record["MSGED_VARIABLES"] = unserialize($record["MSGED_VARIABLES"]); + + $arrayMessageEventDefinitionData = $messageEventDefinition->create($processUid, $record, false); + } + } catch (Exception $e) { + throw $e; + } + } + /** * Cleanup Report Tables References from an array of data * @@ -3506,6 +3598,7 @@ class Processes $oData->webEntryEvent = $this->getWebEntryEvents($sProUid); $oData->messageType = $this->getMessageTypes($sProUid); $oData->messageTypeVariable = $this->getMessageTypeVariables($sProUid); + $oData->messageEventDefinition = $this->getMessageEventDefinitions($sProUid); $oData->groupwfs = $this->groupwfsMerge($oData->groupwfs, $oData->processUser, "USR_UID"); $oData->process["PRO_TYPE_PROCESS"] = "PUBLIC"; @@ -4552,6 +4645,7 @@ class Processes $this->createWebEntryEvent($arrayProcessData["PRO_UID"], $arrayProcessData["PRO_CREATE_USER"], (isset($oData->webEntryEvent))? $oData->webEntryEvent : array()); $this->createMessageType((isset($oData->messageType))? $oData->messageType : array()); $this->createMessageTypeVariable((isset($oData->messageTypeVariable))? $oData->messageTypeVariable : array()); + $this->createMessageEventDefinition($arrayProcessData["PRO_UID"], (isset($oData->messageEventDefinition))? $oData->messageEventDefinition : array()); } diff --git a/workflow/engine/classes/class.spool.php b/workflow/engine/classes/class.spool.php index c524d25bd..45f523e64 100755 --- a/workflow/engine/classes/class.spool.php +++ b/workflow/engine/classes/class.spool.php @@ -86,8 +86,8 @@ class spoolRun $this->ExceptionCode['WARNING'] = 2; $this->ExceptionCode['NOTICE'] = 3; - $this->longMailEreg = '/(.*)(<([\w\-\.]+@[\w\-_\.]+\.\w{2,5})+>)/'; - $this->mailEreg = '/^([\w\-_\.]+@[\w\-_\.]+\.\w{2,5}+)$/'; + $this->longMailEreg = "/(.*)(<([\w\-\.']+@[\w\-_\.]+\.\w{2,5})+>)/"; + $this->mailEreg = "/^([\w\-_\.']+@[\w\-_\.]+\.\w{2,5}+)$/"; } /** @@ -289,7 +289,7 @@ class spoolRun */ private function handleFrom () { - $eregA = "/^.*@.*$/"; + $eregA = "/^'.*@.*$/"; if (strpos( $this->fileData['from'], '<' ) !== false) { //to validate complex email address i.e. Erik A. O
true is returned; otherwise
+ * an aggreagated array of ValidationFailed objects will be returned.
+ *
+ * @param array $columns Array of column names to validate.
+ * @return mixed true if all validations pass;
+ array of ValidationFailed objects otherwise.
+ */
+ protected function doValidate($columns = null)
+ {
+ if (!$this->alreadyInValidation) {
+ $this->alreadyInValidation = true;
+ $retval = null;
+
+ $failureMap = array();
+
+
+ if (($retval = ListCanceledPeer::doValidate($this, $columns)) !== true) {
+ $failureMap = array_merge($failureMap, $retval);
+ }
+
+
+
+ $this->alreadyInValidation = false;
+ }
+
+ return (!empty($failureMap) ? $failureMap : true);
+ }
+
+ /**
+ * Retrieves a field from the object by name passed in as a string.
+ *
+ * @param string $name name
+ * @param string $type The type of fieldname the $name is of:
+ * one of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return mixed Value of field.
+ */
+ public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
+ {
+ $pos = ListCanceledPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
+ return $this->getByPosition($pos);
+ }
+
+ /**
+ * Retrieves a field from the object by Position as specified in the xml schema.
+ * Zero-based.
+ *
+ * @param int $pos position in xml schema
+ * @return mixed Value of field at $pos
+ */
+ public function getByPosition($pos)
+ {
+ switch($pos) {
+ case 0:
+ return $this->getAppUid();
+ break;
+ case 1:
+ return $this->getUsrUid();
+ break;
+ case 2:
+ return $this->getTasUid();
+ break;
+ case 3:
+ return $this->getProUid();
+ break;
+ case 4:
+ return $this->getAppNumber();
+ break;
+ case 5:
+ return $this->getAppTitle();
+ break;
+ case 6:
+ return $this->getAppProTitle();
+ break;
+ case 7:
+ return $this->getAppTasTitle();
+ break;
+ case 8:
+ return $this->getAppCanceledDate();
+ break;
+ case 9:
+ return $this->getDelIndex();
+ break;
+ case 10:
+ return $this->getDelPreviousUsrUid();
+ break;
+ case 11:
+ return $this->getDelCurrentUsrUsername();
+ break;
+ case 12:
+ return $this->getDelCurrentUsrFirstname();
+ break;
+ case 13:
+ return $this->getDelCurrentUsrLastname();
+ break;
+ case 14:
+ return $this->getDelDelegateDate();
+ break;
+ case 15:
+ return $this->getDelInitDate();
+ break;
+ case 16:
+ return $this->getDelDueDate();
+ break;
+ case 17:
+ return $this->getDelPriority();
+ break;
+ default:
+ return null;
+ break;
+ } // switch()
+ }
+
+ /**
+ * Exports the object as an array.
+ *
+ * You can specify the key type of the array by passing one of the class
+ * type constants.
+ *
+ * @param string $keyType One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return an associative array containing the field names (as keys) and field values
+ */
+ public function toArray($keyType = BasePeer::TYPE_PHPNAME)
+ {
+ $keys = ListCanceledPeer::getFieldNames($keyType);
+ $result = array(
+ $keys[0] => $this->getAppUid(),
+ $keys[1] => $this->getUsrUid(),
+ $keys[2] => $this->getTasUid(),
+ $keys[3] => $this->getProUid(),
+ $keys[4] => $this->getAppNumber(),
+ $keys[5] => $this->getAppTitle(),
+ $keys[6] => $this->getAppProTitle(),
+ $keys[7] => $this->getAppTasTitle(),
+ $keys[8] => $this->getAppCanceledDate(),
+ $keys[9] => $this->getDelIndex(),
+ $keys[10] => $this->getDelPreviousUsrUid(),
+ $keys[11] => $this->getDelCurrentUsrUsername(),
+ $keys[12] => $this->getDelCurrentUsrFirstname(),
+ $keys[13] => $this->getDelCurrentUsrLastname(),
+ $keys[14] => $this->getDelDelegateDate(),
+ $keys[15] => $this->getDelInitDate(),
+ $keys[16] => $this->getDelDueDate(),
+ $keys[17] => $this->getDelPriority(),
+ );
+ return $result;
+ }
+
+ /**
+ * Sets a field from the object by name passed in as a string.
+ *
+ * @param string $name peer name
+ * @param mixed $value field value
+ * @param string $type The type of fieldname the $name is of:
+ * one of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return void
+ */
+ public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
+ {
+ $pos = ListCanceledPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
+ return $this->setByPosition($pos, $value);
+ }
+
+ /**
+ * Sets a field from the object by Position as specified in the xml schema.
+ * Zero-based.
+ *
+ * @param int $pos position in xml schema
+ * @param mixed $value field value
+ * @return void
+ */
+ public function setByPosition($pos, $value)
+ {
+ switch($pos) {
+ case 0:
+ $this->setAppUid($value);
+ break;
+ case 1:
+ $this->setUsrUid($value);
+ break;
+ case 2:
+ $this->setTasUid($value);
+ break;
+ case 3:
+ $this->setProUid($value);
+ break;
+ case 4:
+ $this->setAppNumber($value);
+ break;
+ case 5:
+ $this->setAppTitle($value);
+ break;
+ case 6:
+ $this->setAppProTitle($value);
+ break;
+ case 7:
+ $this->setAppTasTitle($value);
+ break;
+ case 8:
+ $this->setAppCanceledDate($value);
+ break;
+ case 9:
+ $this->setDelIndex($value);
+ break;
+ case 10:
+ $this->setDelPreviousUsrUid($value);
+ break;
+ case 11:
+ $this->setDelCurrentUsrUsername($value);
+ break;
+ case 12:
+ $this->setDelCurrentUsrFirstname($value);
+ break;
+ case 13:
+ $this->setDelCurrentUsrLastname($value);
+ break;
+ case 14:
+ $this->setDelDelegateDate($value);
+ break;
+ case 15:
+ $this->setDelInitDate($value);
+ break;
+ case 16:
+ $this->setDelDueDate($value);
+ break;
+ case 17:
+ $this->setDelPriority($value);
+ break;
+ } // switch()
+ }
+
+ /**
+ * Populates the object using an array.
+ *
+ * This is particularly useful when populating an object from one of the
+ * request arrays (e.g. $_POST). This method goes through the column
+ * names, checking to see whether a matching key exists in populated
+ * array. If so the setByName() method is called for that column.
+ *
+ * You can specify the key type of the array by additionally passing one
+ * of the class type constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME,
+ * TYPE_NUM. The default key type is the column's phpname (e.g. 'authorId')
+ *
+ * @param array $arr An array to populate the object from.
+ * @param string $keyType The type of keys the array uses.
+ * @return void
+ */
+ public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
+ {
+ $keys = ListCanceledPeer::getFieldNames($keyType);
+
+ if (array_key_exists($keys[0], $arr)) {
+ $this->setAppUid($arr[$keys[0]]);
+ }
+
+ if (array_key_exists($keys[1], $arr)) {
+ $this->setUsrUid($arr[$keys[1]]);
+ }
+
+ if (array_key_exists($keys[2], $arr)) {
+ $this->setTasUid($arr[$keys[2]]);
+ }
+
+ if (array_key_exists($keys[3], $arr)) {
+ $this->setProUid($arr[$keys[3]]);
+ }
+
+ if (array_key_exists($keys[4], $arr)) {
+ $this->setAppNumber($arr[$keys[4]]);
+ }
+
+ if (array_key_exists($keys[5], $arr)) {
+ $this->setAppTitle($arr[$keys[5]]);
+ }
+
+ if (array_key_exists($keys[6], $arr)) {
+ $this->setAppProTitle($arr[$keys[6]]);
+ }
+
+ if (array_key_exists($keys[7], $arr)) {
+ $this->setAppTasTitle($arr[$keys[7]]);
+ }
+
+ if (array_key_exists($keys[8], $arr)) {
+ $this->setAppCanceledDate($arr[$keys[8]]);
+ }
+
+ if (array_key_exists($keys[9], $arr)) {
+ $this->setDelIndex($arr[$keys[9]]);
+ }
+
+ if (array_key_exists($keys[10], $arr)) {
+ $this->setDelPreviousUsrUid($arr[$keys[10]]);
+ }
+
+ if (array_key_exists($keys[11], $arr)) {
+ $this->setDelCurrentUsrUsername($arr[$keys[11]]);
+ }
+
+ if (array_key_exists($keys[12], $arr)) {
+ $this->setDelCurrentUsrFirstname($arr[$keys[12]]);
+ }
+
+ if (array_key_exists($keys[13], $arr)) {
+ $this->setDelCurrentUsrLastname($arr[$keys[13]]);
+ }
+
+ if (array_key_exists($keys[14], $arr)) {
+ $this->setDelDelegateDate($arr[$keys[14]]);
+ }
+
+ if (array_key_exists($keys[15], $arr)) {
+ $this->setDelInitDate($arr[$keys[15]]);
+ }
+
+ if (array_key_exists($keys[16], $arr)) {
+ $this->setDelDueDate($arr[$keys[16]]);
+ }
+
+ if (array_key_exists($keys[17], $arr)) {
+ $this->setDelPriority($arr[$keys[17]]);
+ }
+
+ }
+
+ /**
+ * Build a Criteria object containing the values of all modified columns in this object.
+ *
+ * @return Criteria The Criteria object containing all modified values.
+ */
+ public function buildCriteria()
+ {
+ $criteria = new Criteria(ListCanceledPeer::DATABASE_NAME);
+
+ if ($this->isColumnModified(ListCanceledPeer::APP_UID)) {
+ $criteria->add(ListCanceledPeer::APP_UID, $this->app_uid);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::USR_UID)) {
+ $criteria->add(ListCanceledPeer::USR_UID, $this->usr_uid);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::TAS_UID)) {
+ $criteria->add(ListCanceledPeer::TAS_UID, $this->tas_uid);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::PRO_UID)) {
+ $criteria->add(ListCanceledPeer::PRO_UID, $this->pro_uid);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::APP_NUMBER)) {
+ $criteria->add(ListCanceledPeer::APP_NUMBER, $this->app_number);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::APP_TITLE)) {
+ $criteria->add(ListCanceledPeer::APP_TITLE, $this->app_title);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::APP_PRO_TITLE)) {
+ $criteria->add(ListCanceledPeer::APP_PRO_TITLE, $this->app_pro_title);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::APP_TAS_TITLE)) {
+ $criteria->add(ListCanceledPeer::APP_TAS_TITLE, $this->app_tas_title);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::APP_CANCELED_DATE)) {
+ $criteria->add(ListCanceledPeer::APP_CANCELED_DATE, $this->app_canceled_date);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::DEL_INDEX)) {
+ $criteria->add(ListCanceledPeer::DEL_INDEX, $this->del_index);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::DEL_PREVIOUS_USR_UID)) {
+ $criteria->add(ListCanceledPeer::DEL_PREVIOUS_USR_UID, $this->del_previous_usr_uid);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::DEL_CURRENT_USR_USERNAME)) {
+ $criteria->add(ListCanceledPeer::DEL_CURRENT_USR_USERNAME, $this->del_current_usr_username);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::DEL_CURRENT_USR_FIRSTNAME)) {
+ $criteria->add(ListCanceledPeer::DEL_CURRENT_USR_FIRSTNAME, $this->del_current_usr_firstname);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::DEL_CURRENT_USR_LASTNAME)) {
+ $criteria->add(ListCanceledPeer::DEL_CURRENT_USR_LASTNAME, $this->del_current_usr_lastname);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::DEL_DELEGATE_DATE)) {
+ $criteria->add(ListCanceledPeer::DEL_DELEGATE_DATE, $this->del_delegate_date);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::DEL_INIT_DATE)) {
+ $criteria->add(ListCanceledPeer::DEL_INIT_DATE, $this->del_init_date);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::DEL_DUE_DATE)) {
+ $criteria->add(ListCanceledPeer::DEL_DUE_DATE, $this->del_due_date);
+ }
+
+ if ($this->isColumnModified(ListCanceledPeer::DEL_PRIORITY)) {
+ $criteria->add(ListCanceledPeer::DEL_PRIORITY, $this->del_priority);
+ }
+
+
+ return $criteria;
+ }
+
+ /**
+ * Builds a Criteria object containing the primary key for this object.
+ *
+ * Unlike buildCriteria() this method includes the primary key values regardless
+ * of whether or not they have been modified.
+ *
+ * @return Criteria The Criteria object containing value(s) for primary key(s).
+ */
+ public function buildPkeyCriteria()
+ {
+ $criteria = new Criteria(ListCanceledPeer::DATABASE_NAME);
+
+ $criteria->add(ListCanceledPeer::APP_UID, $this->app_uid);
+
+ return $criteria;
+ }
+
+ /**
+ * Returns the primary key for this object (row).
+ * @return string
+ */
+ public function getPrimaryKey()
+ {
+ return $this->getAppUid();
+ }
+
+ /**
+ * Generic method to set the primary key (app_uid column).
+ *
+ * @param string $key Primary key.
+ * @return void
+ */
+ public function setPrimaryKey($key)
+ {
+ $this->setAppUid($key);
+ }
+
+ /**
+ * Sets contents of passed object to values from current object.
+ *
+ * If desired, this method can also make copies of all associated (fkey referrers)
+ * objects.
+ *
+ * @param object $copyObj An object of ListCanceled (or compatible) type.
+ * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
+ * @throws PropelException
+ */
+ public function copyInto($copyObj, $deepCopy = false)
+ {
+
+ $copyObj->setUsrUid($this->usr_uid);
+
+ $copyObj->setTasUid($this->tas_uid);
+
+ $copyObj->setProUid($this->pro_uid);
+
+ $copyObj->setAppNumber($this->app_number);
+
+ $copyObj->setAppTitle($this->app_title);
+
+ $copyObj->setAppProTitle($this->app_pro_title);
+
+ $copyObj->setAppTasTitle($this->app_tas_title);
+
+ $copyObj->setAppCanceledDate($this->app_canceled_date);
+
+ $copyObj->setDelIndex($this->del_index);
+
+ $copyObj->setDelPreviousUsrUid($this->del_previous_usr_uid);
+
+ $copyObj->setDelCurrentUsrUsername($this->del_current_usr_username);
+
+ $copyObj->setDelCurrentUsrFirstname($this->del_current_usr_firstname);
+
+ $copyObj->setDelCurrentUsrLastname($this->del_current_usr_lastname);
+
+ $copyObj->setDelDelegateDate($this->del_delegate_date);
+
+ $copyObj->setDelInitDate($this->del_init_date);
+
+ $copyObj->setDelDueDate($this->del_due_date);
+
+ $copyObj->setDelPriority($this->del_priority);
+
+
+ $copyObj->setNew(true);
+
+ $copyObj->setAppUid(''); // this is a pkey column, so set to default value
+
+ }
+
+ /**
+ * Makes a copy of this object that will be inserted as a new row in table when saved.
+ * It creates a new object filling in the simple attributes, but skipping any primary
+ * keys that are defined for the table.
+ *
+ * If desired, this method can also make copies of all associated (fkey referrers)
+ * objects.
+ *
+ * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
+ * @return ListCanceled Clone of current object.
+ * @throws PropelException
+ */
+ public function copy($deepCopy = false)
+ {
+ // we use get_class(), because this might be a subclass
+ $clazz = get_class($this);
+ $copyObj = new $clazz();
+ $this->copyInto($copyObj, $deepCopy);
+ return $copyObj;
+ }
+
+ /**
+ * Returns a peer instance associated with this om.
+ *
+ * Since Peer classes are not to have any instance attributes, this method returns the
+ * same instance for all member of this class. The method could therefore
+ * be static, but this would prevent one from overriding the behavior.
+ *
+ * @return ListCanceledPeer
+ */
+ public function getPeer()
+ {
+ if (self::$peer === null) {
+ self::$peer = new ListCanceledPeer();
+ }
+ return self::$peer;
+ }
+}
+
diff --git a/workflow/engine/classes/model/om/BaseListCanceledPeer.php b/workflow/engine/classes/model/om/BaseListCanceledPeer.php
new file mode 100644
index 000000000..0ab6942a9
--- /dev/null
+++ b/workflow/engine/classes/model/om/BaseListCanceledPeer.php
@@ -0,0 +1,652 @@
+ array ('AppUid', 'UsrUid', 'TasUid', 'ProUid', 'AppNumber', 'AppTitle', 'AppProTitle', 'AppTasTitle', 'AppCanceledDate', 'DelIndex', 'DelPreviousUsrUid', 'DelCurrentUsrUsername', 'DelCurrentUsrFirstname', 'DelCurrentUsrLastname', 'DelDelegateDate', 'DelInitDate', 'DelDueDate', 'DelPriority', ),
+ BasePeer::TYPE_COLNAME => array (ListCanceledPeer::APP_UID, ListCanceledPeer::USR_UID, ListCanceledPeer::TAS_UID, ListCanceledPeer::PRO_UID, ListCanceledPeer::APP_NUMBER, ListCanceledPeer::APP_TITLE, ListCanceledPeer::APP_PRO_TITLE, ListCanceledPeer::APP_TAS_TITLE, ListCanceledPeer::APP_CANCELED_DATE, ListCanceledPeer::DEL_INDEX, ListCanceledPeer::DEL_PREVIOUS_USR_UID, ListCanceledPeer::DEL_CURRENT_USR_USERNAME, ListCanceledPeer::DEL_CURRENT_USR_FIRSTNAME, ListCanceledPeer::DEL_CURRENT_USR_LASTNAME, ListCanceledPeer::DEL_DELEGATE_DATE, ListCanceledPeer::DEL_INIT_DATE, ListCanceledPeer::DEL_DUE_DATE, ListCanceledPeer::DEL_PRIORITY, ),
+ BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'USR_UID', 'TAS_UID', 'PRO_UID', 'APP_NUMBER', 'APP_TITLE', 'APP_PRO_TITLE', 'APP_TAS_TITLE', 'APP_CANCELED_DATE', 'DEL_INDEX', 'DEL_PREVIOUS_USR_UID', 'DEL_CURRENT_USR_USERNAME', 'DEL_CURRENT_USR_FIRSTNAME', 'DEL_CURRENT_USR_LASTNAME', 'DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_DUE_DATE', 'DEL_PRIORITY', ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
+ );
+
+ /**
+ * holds an array of keys for quick access to the fieldnames array
+ *
+ * first dimension keys are the type constants
+ * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
+ */
+ private static $fieldKeys = array (
+ BasePeer::TYPE_PHPNAME => array ('AppUid' => 0, 'UsrUid' => 1, 'TasUid' => 2, 'ProUid' => 3, 'AppNumber' => 4, 'AppTitle' => 5, 'AppProTitle' => 6, 'AppTasTitle' => 7, 'AppCanceledDate' => 8, 'DelIndex' => 9, 'DelPreviousUsrUid' => 10, 'DelCurrentUsrUsername' => 11, 'DelCurrentUsrFirstname' => 12, 'DelCurrentUsrLastname' => 13, 'DelDelegateDate' => 14, 'DelInitDate' => 15, 'DelDueDate' => 16, 'DelPriority' => 17, ),
+ BasePeer::TYPE_COLNAME => array (ListCanceledPeer::APP_UID => 0, ListCanceledPeer::USR_UID => 1, ListCanceledPeer::TAS_UID => 2, ListCanceledPeer::PRO_UID => 3, ListCanceledPeer::APP_NUMBER => 4, ListCanceledPeer::APP_TITLE => 5, ListCanceledPeer::APP_PRO_TITLE => 6, ListCanceledPeer::APP_TAS_TITLE => 7, ListCanceledPeer::APP_CANCELED_DATE => 8, ListCanceledPeer::DEL_INDEX => 9, ListCanceledPeer::DEL_PREVIOUS_USR_UID => 10, ListCanceledPeer::DEL_CURRENT_USR_USERNAME => 11, ListCanceledPeer::DEL_CURRENT_USR_FIRSTNAME => 12, ListCanceledPeer::DEL_CURRENT_USR_LASTNAME => 13, ListCanceledPeer::DEL_DELEGATE_DATE => 14, ListCanceledPeer::DEL_INIT_DATE => 15, ListCanceledPeer::DEL_DUE_DATE => 16, ListCanceledPeer::DEL_PRIORITY => 17, ),
+ BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'USR_UID' => 1, 'TAS_UID' => 2, 'PRO_UID' => 3, 'APP_NUMBER' => 4, 'APP_TITLE' => 5, 'APP_PRO_TITLE' => 6, 'APP_TAS_TITLE' => 7, 'APP_CANCELED_DATE' => 8, 'DEL_INDEX' => 9, 'DEL_PREVIOUS_USR_UID' => 10, 'DEL_CURRENT_USR_USERNAME' => 11, 'DEL_CURRENT_USR_FIRSTNAME' => 12, 'DEL_CURRENT_USR_LASTNAME' => 13, 'DEL_DELEGATE_DATE' => 14, 'DEL_INIT_DATE' => 15, 'DEL_DUE_DATE' => 16, 'DEL_PRIORITY' => 17, ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
+ );
+
+ /**
+ * @return MapBuilder the map builder for this peer
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function getMapBuilder()
+ {
+ include_once 'classes/model/map/ListCanceledMapBuilder.php';
+ return BasePeer::getMapBuilder('classes.model.map.ListCanceledMapBuilder');
+ }
+ /**
+ * Gets a map (hash) of PHP names to DB column names.
+ *
+ * @return array The PHP to DB name map for this peer
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ * @deprecated Use the getFieldNames() and translateFieldName() methods instead of this.
+ */
+ public static function getPhpNameMap()
+ {
+ if (self::$phpNameMap === null) {
+ $map = ListCanceledPeer::getTableMap();
+ $columns = $map->getColumns();
+ $nameMap = array();
+ foreach ($columns as $column) {
+ $nameMap[$column->getPhpName()] = $column->getColumnName();
+ }
+ self::$phpNameMap = $nameMap;
+ }
+ return self::$phpNameMap;
+ }
+ /**
+ * Translates a fieldname to another type
+ *
+ * @param string $name field name
+ * @param string $fromType One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @param string $toType One of the class type constants
+ * @return string translated name of the field.
+ */
+ static public function translateFieldName($name, $fromType, $toType)
+ {
+ $toNames = self::getFieldNames($toType);
+ $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;
+ if ($key === null) {
+ throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true));
+ }
+ return $toNames[$key];
+ }
+
+ /**
+ * Returns an array of of field names.
+ *
+ * @param string $type The type of fieldnames to return:
+ * One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return array A list of field names
+ */
+
+ static public function getFieldNames($type = BasePeer::TYPE_PHPNAME)
+ {
+ if (!array_key_exists($type, self::$fieldNames)) {
+ throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM. ' . $type . ' was given.');
+ }
+ return self::$fieldNames[$type];
+ }
+
+ /**
+ * Convenience method which changes table.column to alias.column.
+ *
+ * Using this method you can maintain SQL abstraction while using column aliases.
+ *
+ * $c->addAlias("alias1", TablePeer::TABLE_NAME);
+ * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
+ *
+ * @param string $alias The alias for the current table.
+ * @param string $column The column name for current table. (i.e. ListCanceledPeer::COLUMN_NAME).
+ * @return string
+ */
+ public static function alias($alias, $column)
+ {
+ return str_replace(ListCanceledPeer::TABLE_NAME.'.', $alias.'.', $column);
+ }
+
+ /**
+ * Add all the columns needed to create a new object.
+ *
+ * Note: any columns that were marked with lazyLoad="true" in the
+ * XML schema will not be added to the select list and only loaded
+ * on demand.
+ *
+ * @param criteria object containing the columns to add.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function addSelectColumns(Criteria $criteria)
+ {
+
+ $criteria->addSelectColumn(ListCanceledPeer::APP_UID);
+
+ $criteria->addSelectColumn(ListCanceledPeer::USR_UID);
+
+ $criteria->addSelectColumn(ListCanceledPeer::TAS_UID);
+
+ $criteria->addSelectColumn(ListCanceledPeer::PRO_UID);
+
+ $criteria->addSelectColumn(ListCanceledPeer::APP_NUMBER);
+
+ $criteria->addSelectColumn(ListCanceledPeer::APP_TITLE);
+
+ $criteria->addSelectColumn(ListCanceledPeer::APP_PRO_TITLE);
+
+ $criteria->addSelectColumn(ListCanceledPeer::APP_TAS_TITLE);
+
+ $criteria->addSelectColumn(ListCanceledPeer::APP_CANCELED_DATE);
+
+ $criteria->addSelectColumn(ListCanceledPeer::DEL_INDEX);
+
+ $criteria->addSelectColumn(ListCanceledPeer::DEL_PREVIOUS_USR_UID);
+
+ $criteria->addSelectColumn(ListCanceledPeer::DEL_CURRENT_USR_USERNAME);
+
+ $criteria->addSelectColumn(ListCanceledPeer::DEL_CURRENT_USR_FIRSTNAME);
+
+ $criteria->addSelectColumn(ListCanceledPeer::DEL_CURRENT_USR_LASTNAME);
+
+ $criteria->addSelectColumn(ListCanceledPeer::DEL_DELEGATE_DATE);
+
+ $criteria->addSelectColumn(ListCanceledPeer::DEL_INIT_DATE);
+
+ $criteria->addSelectColumn(ListCanceledPeer::DEL_DUE_DATE);
+
+ $criteria->addSelectColumn(ListCanceledPeer::DEL_PRIORITY);
+
+ }
+
+ const COUNT = 'COUNT(LIST_CANCELED.APP_UID)';
+ const COUNT_DISTINCT = 'COUNT(DISTINCT LIST_CANCELED.APP_UID)';
+
+ /**
+ * Returns the number of rows matching criteria.
+ *
+ * @param Criteria $criteria
+ * @param boolean $distinct Whether to select only distinct columns (You can also set DISTINCT modifier in Criteria).
+ * @param Connection $con
+ * @return int Number of matching rows.
+ */
+ public static function doCount(Criteria $criteria, $distinct = false, $con = null)
+ {
+ // we're going to modify criteria, so copy it first
+ $criteria = clone $criteria;
+
+ // clear out anything that might confuse the ORDER BY clause
+ $criteria->clearSelectColumns()->clearOrderByColumns();
+ if ($distinct || in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {
+ $criteria->addSelectColumn(ListCanceledPeer::COUNT_DISTINCT);
+ } else {
+ $criteria->addSelectColumn(ListCanceledPeer::COUNT);
+ }
+
+ // just in case we're grouping: add those columns to the select statement
+ foreach ($criteria->getGroupByColumns() as $column) {
+ $criteria->addSelectColumn($column);
+ }
+
+ $rs = ListCanceledPeer::doSelectRS($criteria, $con);
+ if ($rs->next()) {
+ return $rs->getInt(1);
+ } else {
+ // no rows returned; we infer that means 0 matches.
+ return 0;
+ }
+ }
+ /**
+ * Method to select one object from the DB.
+ *
+ * @param Criteria $criteria object used to create the SELECT statement.
+ * @param Connection $con
+ * @return ListCanceled
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doSelectOne(Criteria $criteria, $con = null)
+ {
+ $critcopy = clone $criteria;
+ $critcopy->setLimit(1);
+ $objects = ListCanceledPeer::doSelect($critcopy, $con);
+ if ($objects) {
+ return $objects[0];
+ }
+ return null;
+ }
+ /**
+ * Method to do selects.
+ *
+ * @param Criteria $criteria The Criteria object used to build the SELECT statement.
+ * @param Connection $con
+ * @return array Array of selected Objects
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doSelect(Criteria $criteria, $con = null)
+ {
+ return ListCanceledPeer::populateObjects(ListCanceledPeer::doSelectRS($criteria, $con));
+ }
+ /**
+ * Prepares the Criteria object and uses the parent doSelect()
+ * method to get a ResultSet.
+ *
+ * Use this method directly if you want to just get the resultset
+ * (instead of an array of objects).
+ *
+ * @param Criteria $criteria The Criteria object used to build the SELECT statement.
+ * @param Connection $con the connection to use
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ * @return ResultSet The resultset object with numerically-indexed fields.
+ * @see BasePeer::doSelect()
+ */
+ public static function doSelectRS(Criteria $criteria, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ if (!$criteria->getSelectColumns()) {
+ $criteria = clone $criteria;
+ ListCanceledPeer::addSelectColumns($criteria);
+ }
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ // BasePeer returns a Creole ResultSet, set to return
+ // rows indexed numerically.
+ return BasePeer::doSelect($criteria, $con);
+ }
+ /**
+ * The returned array will contain objects of the default type or
+ * objects that inherit from the default.
+ *
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function populateObjects(ResultSet $rs)
+ {
+ $results = array();
+
+ // set the class once to avoid overhead in the loop
+ $cls = ListCanceledPeer::getOMClass();
+ $cls = Propel::import($cls);
+ // populate the object(s)
+ while ($rs->next()) {
+
+ $obj = new $cls();
+ $obj->hydrate($rs);
+ $results[] = $obj;
+
+ }
+ return $results;
+ }
+ /**
+ * Returns the TableMap related to this peer.
+ * This method is not needed for general use but a specific application could have a need.
+ * @return TableMap
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function getTableMap()
+ {
+ return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);
+ }
+
+ /**
+ * The class that the Peer will make instances of.
+ *
+ * This uses a dot-path notation which is tranalted into a path
+ * relative to a location on the PHP include_path.
+ * (e.g. path.to.MyClass -> 'path/to/MyClass.php')
+ *
+ * @return string path.to.ClassName
+ */
+ public static function getOMClass()
+ {
+ return ListCanceledPeer::CLASS_DEFAULT;
+ }
+
+ /**
+ * Method perform an INSERT on the database, given a ListCanceled or Criteria object.
+ *
+ * @param mixed $values Criteria or ListCanceled object containing data that is used to create the INSERT statement.
+ * @param Connection $con the connection to use
+ * @return mixed The new primary key.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doInsert($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+ } else {
+ $criteria = $values->buildCriteria(); // build Criteria from ListCanceled object
+ }
+
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table (I guess, conceivably)
+ $con->begin();
+ $pk = BasePeer::doInsert($criteria, $con);
+ $con->commit();
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+
+ return $pk;
+ }
+
+ /**
+ * Method perform an UPDATE on the database, given a ListCanceled or Criteria object.
+ *
+ * @param mixed $values Criteria or ListCanceled object containing data create the UPDATE statement.
+ * @param Connection $con The connection to use (specify Connection exert more control over transactions).
+ * @return int The number of affected rows (if supported by underlying database driver).
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doUpdate($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $selectCriteria = new Criteria(self::DATABASE_NAME);
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+
+ $comparison = $criteria->getComparison(ListCanceledPeer::APP_UID);
+ $selectCriteria->add(ListCanceledPeer::APP_UID, $criteria->remove(ListCanceledPeer::APP_UID), $comparison);
+
+ } else {
+ $criteria = $values->buildCriteria(); // gets full criteria
+ $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
+ }
+
+ // set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ return BasePeer::doUpdate($selectCriteria, $criteria, $con);
+ }
+
+ /**
+ * Method to DELETE all rows from the LIST_CANCELED table.
+ *
+ * @return int The number of affected rows (if supported by underlying database driver).
+ */
+ public static function doDeleteAll($con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+ $affectedRows = 0; // initialize var to track total num of affected rows
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table or we could emulating ON DELETE CASCADE, etc.
+ $con->begin();
+ $affectedRows += BasePeer::doDeleteAll(ListCanceledPeer::TABLE_NAME, $con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Method perform a DELETE on the database, given a ListCanceled or Criteria object OR a primary key value.
+ *
+ * @param mixed $values Criteria or ListCanceled object or primary key or array of primary keys
+ * which is used to create the DELETE statement
+ * @param Connection $con the connection to use
+ * @return int The number of affected rows (if supported by underlying database driver).
+ * This includes CASCADE-related rows
+ * if supported by native driver or if emulated using Propel.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doDelete($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(ListCanceledPeer::DATABASE_NAME);
+ }
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+ } elseif ($values instanceof ListCanceled) {
+
+ $criteria = $values->buildPkeyCriteria();
+ } else {
+ // it must be the primary key
+ $criteria = new Criteria(self::DATABASE_NAME);
+ $criteria->add(ListCanceledPeer::APP_UID, (array) $values, Criteria::IN);
+ }
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ $affectedRows = 0; // initialize var to track total num of affected rows
+
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table or we could emulating ON DELETE CASCADE, etc.
+ $con->begin();
+
+ $affectedRows += BasePeer::doDelete($criteria, $con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Validates all modified columns of given ListCanceled object.
+ * If parameter $columns is either a single column name or an array of column names
+ * than only those columns are validated.
+ *
+ * NOTICE: This does not apply to primary or foreign keys for now.
+ *
+ * @param ListCanceled $obj The object to validate.
+ * @param mixed $cols Column name or array of column names.
+ *
+ * @return mixed TRUE if all columns are valid or the error message of the first invalid column.
+ */
+ public static function doValidate(ListCanceled $obj, $cols = null)
+ {
+ $columns = array();
+
+ if ($cols) {
+ $dbMap = Propel::getDatabaseMap(ListCanceledPeer::DATABASE_NAME);
+ $tableMap = $dbMap->getTable(ListCanceledPeer::TABLE_NAME);
+
+ if (! is_array($cols)) {
+ $cols = array($cols);
+ }
+
+ foreach ($cols as $colName) {
+ if ($tableMap->containsColumn($colName)) {
+ $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
+ $columns[$colName] = $obj->$get();
+ }
+ }
+ } else {
+
+ }
+
+ return BasePeer::doValidate(ListCanceledPeer::DATABASE_NAME, ListCanceledPeer::TABLE_NAME, $columns);
+ }
+
+ /**
+ * Retrieve a single object by pkey.
+ *
+ * @param mixed $pk the primary key.
+ * @param Connection $con the connection to use
+ * @return ListCanceled
+ */
+ public static function retrieveByPK($pk, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $criteria = new Criteria(ListCanceledPeer::DATABASE_NAME);
+
+ $criteria->add(ListCanceledPeer::APP_UID, $pk);
+
+
+ $v = ListCanceledPeer::doSelect($criteria, $con);
+
+ return !empty($v) > 0 ? $v[0] : null;
+ }
+
+ /**
+ * Retrieve multiple objects by pkey.
+ *
+ * @param array $pks List of primary keys
+ * @param Connection $con the connection to use
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function retrieveByPKs($pks, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $objs = null;
+ if (empty($pks)) {
+ $objs = array();
+ } else {
+ $criteria = new Criteria();
+ $criteria->add(ListCanceledPeer::APP_UID, $pks, Criteria::IN);
+ $objs = ListCanceledPeer::doSelect($criteria, $con);
+ }
+ return $objs;
+ }
+}
+
+
+// static code to register the map builder for this Peer with the main Propel class
+if (Propel::isInit()) {
+ // the MapBuilder classes register themselves with Propel during initialization
+ // so we need to load them here.
+ try {
+ BaseListCanceledPeer::getMapBuilder();
+ } catch (Exception $e) {
+ Propel::log('Could not initialize Peer: ' . $e->getMessage(), Propel::LOG_ERR);
+ }
+} else {
+ // even if Propel is not yet initialized, the map builder class can be registered
+ // now and then it will be loaded when Propel initializes.
+ require_once 'classes/model/map/ListCanceledMapBuilder.php';
+ Propel::registerMapBuilder('classes.model.map.ListCanceledMapBuilder');
+}
+
diff --git a/workflow/engine/classes/model/om/BaseListInbox.php b/workflow/engine/classes/model/om/BaseListInbox.php
index df2257281..c045167a3 100644
--- a/workflow/engine/classes/model/om/BaseListInbox.php
+++ b/workflow/engine/classes/model/om/BaseListInbox.php
@@ -9,13 +9,15 @@ include_once 'propel/util/Criteria.php';
include_once 'classes/model/ListInboxPeer.php';
+
/**
* Base class that represents a row from the 'LIST_INBOX' table.
*
*
*
* @package workflow.classes.model.om
- */
+*/
+
abstract class BaseListInbox extends BaseObject implements Persistent
{
@@ -62,6 +64,12 @@ abstract class BaseListInbox extends BaseObject implements Persistent
* @var int
*/
protected $app_number = 0;
+
+ /**
+ * The value for the app_status field.
+ * @var string
+ */
+ protected $app_status = '';
/**
* The value for the app_title field.
@@ -214,6 +222,17 @@ abstract class BaseListInbox extends BaseObject implements Persistent
return $this->app_number;
}
+
+ /**
+ * Get the [app_status] column value.
+ *
+ * @return string
+ */
+ public function getAppStatus()
+ {
+
+ return $this->app_status;
+ }
/**
* Get the [app_title] column value.
@@ -562,7 +581,28 @@ abstract class BaseListInbox extends BaseObject implements Persistent
}
} // setAppNumber()
+
+ /**
+ * Set the value of [app_status] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setAppStatus($v)
+ {
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->app_status !== $v || $v === '') {
+ $this->app_status = $v;
+ $this->modifiedColumns[] = ListInboxPeer::APP_STATUS;
+ }
+
+ } // setAppStatus()
/**
* Set the value of [app_title] column.
*
@@ -883,37 +923,39 @@ abstract class BaseListInbox extends BaseObject implements Persistent
$this->pro_uid = $rs->getString($startcol + 4);
$this->app_number = $rs->getInt($startcol + 5);
+
+ $this->app_status = $rs->getString($startcol + 6);
- $this->app_title = $rs->getString($startcol + 6);
+ $this->app_title = $rs->getString($startcol + 7);
- $this->app_pro_title = $rs->getString($startcol + 7);
+ $this->app_pro_title = $rs->getString($startcol + 8);
- $this->app_tas_title = $rs->getString($startcol + 8);
+ $this->app_tas_title = $rs->getString($startcol + 9);
- $this->app_update_date = $rs->getTimestamp($startcol + 9, null);
+ $this->app_update_date = $rs->getTimestamp($startcol + 10, null);
- $this->del_previous_usr_uid = $rs->getString($startcol + 10);
+ $this->del_previous_usr_uid = $rs->getString($startcol + 11);
- $this->del_previous_usr_username = $rs->getString($startcol + 11);
+ $this->del_previous_usr_username = $rs->getString($startcol + 12);
- $this->del_previous_usr_firstname = $rs->getString($startcol + 12);
+ $this->del_previous_usr_firstname = $rs->getString($startcol + 13);
- $this->del_previous_usr_lastname = $rs->getString($startcol + 13);
+ $this->del_previous_usr_lastname = $rs->getString($startcol + 14);
- $this->del_delegate_date = $rs->getTimestamp($startcol + 14, null);
+ $this->del_delegate_date = $rs->getTimestamp($startcol + 15, null);
- $this->del_init_date = $rs->getTimestamp($startcol + 15, null);
+ $this->del_init_date = $rs->getTimestamp($startcol + 16, null);
- $this->del_due_date = $rs->getTimestamp($startcol + 16, null);
+ $this->del_due_date = $rs->getTimestamp($startcol + 17, null);
- $this->del_priority = $rs->getString($startcol + 17);
+ $this->del_priority = $rs->getString($startcol + 18);
$this->resetModified();
$this->setNew(false);
// FIXME - using NUM_COLUMNS may be clearer.
- return $startcol + 18; // 18 = ListInboxPeer::NUM_COLUMNS - ListInboxPeer::NUM_LAZY_LOAD_COLUMNS).
+ return $startcol + 19; // 18 = ListInboxPeer::NUM_COLUMNS - ListInboxPeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating ListInbox object", $e);
@@ -1136,41 +1178,45 @@ abstract class BaseListInbox extends BaseObject implements Persistent
return $this->getAppNumber();
break;
case 6:
- return $this->getAppTitle();
+ return $this->getAppStatus();
break;
case 7:
- return $this->getAppProTitle();
+ return $this->getAppTitle();
break;
case 8:
- return $this->getAppTasTitle();
+ return $this->getAppProTitle();
break;
case 9:
- return $this->getAppUpdateDate();
+ return $this->getAppTasTitle();
break;
case 10:
- return $this->getDelPreviousUsrUid();
+ return $this->getAppUpdateDate();
break;
case 11:
- return $this->getDelPreviousUsrUsername();
+ return $this->getDelPreviousUsrUid();
break;
case 12:
- return $this->getDelPreviousUsrFirstname();
+ return $this->getDelPreviousUsrUsername();
break;
case 13:
- return $this->getDelPreviousUsrLastname();
+ return $this->getDelPreviousUsrFirstname();
break;
case 14:
- return $this->getDelDelegateDate();
+ return $this->getDelPreviousUsrLastname();
break;
case 15:
- return $this->getDelInitDate();
+ return $this->getDelDelegateDate();
break;
case 16:
- return $this->getDelDueDate();
+ return $this->getDelInitDate();
break;
case 17:
+ return $this->getDelDueDate();
+ break;
+ case 18:
return $this->getDelPriority();
break;
+
default:
return null;
break;
@@ -1197,18 +1243,19 @@ abstract class BaseListInbox extends BaseObject implements Persistent
$keys[3] => $this->getTasUid(),
$keys[4] => $this->getProUid(),
$keys[5] => $this->getAppNumber(),
- $keys[6] => $this->getAppTitle(),
- $keys[7] => $this->getAppProTitle(),
- $keys[8] => $this->getAppTasTitle(),
- $keys[9] => $this->getAppUpdateDate(),
- $keys[10] => $this->getDelPreviousUsrUid(),
- $keys[11] => $this->getDelPreviousUsrUsername(),
- $keys[12] => $this->getDelPreviousUsrFirstname(),
- $keys[13] => $this->getDelPreviousUsrLastname(),
- $keys[14] => $this->getDelDelegateDate(),
- $keys[15] => $this->getDelInitDate(),
- $keys[16] => $this->getDelDueDate(),
- $keys[17] => $this->getDelPriority(),
+ $keys[6] => $this->getAppStatus(),
+ $keys[7] => $this->getAppTitle(),
+ $keys[8] => $this->getAppProTitle(),
+ $keys[9] => $this->getAppTasTitle(),
+ $keys[10] => $this->getAppUpdateDate(),
+ $keys[11] => $this->getDelPreviousUsrUid(),
+ $keys[12] => $this->getDelPreviousUsrUsername(),
+ $keys[13] => $this->getDelPreviousUsrFirstname(),
+ $keys[14] => $this->getDelPreviousUsrLastname(),
+ $keys[15] => $this->getDelDelegateDate(),
+ $keys[16] => $this->getDelInitDate(),
+ $keys[17] => $this->getDelDueDate(),
+ $keys[18] => $this->getDelPriority(),
);
return $result;
}
@@ -1259,39 +1306,42 @@ abstract class BaseListInbox extends BaseObject implements Persistent
$this->setAppNumber($value);
break;
case 6:
- $this->setAppTitle($value);
+ $this->setAppStatus($value);
break;
case 7:
- $this->setAppProTitle($value);
+ $this->setAppTitle($value);
break;
case 8:
- $this->setAppTasTitle($value);
+ $this->setAppProTitle($value);
break;
case 9:
- $this->setAppUpdateDate($value);
+ $this->setAppTasTitle($value);
break;
case 10:
- $this->setDelPreviousUsrUid($value);
+ $this->setAppUpdateDate($value);
break;
case 11:
- $this->setDelPreviousUsrUsername($value);
+ $this->setDelPreviousUsrUid($value);
break;
case 12:
- $this->setDelPreviousUsrFirstname($value);
+ $this->setDelPreviousUsrUsername($value);
break;
case 13:
- $this->setDelPreviousUsrLastname($value);
+ $this->setDelPreviousUsrFirstname($value);
break;
case 14:
- $this->setDelDelegateDate($value);
+ $this->setDelPreviousUsrLastname($value);
break;
case 15:
- $this->setDelInitDate($value);
+ $this->setDelDelegateDate($value);
break;
case 16:
- $this->setDelDueDate($value);
+ $this->setDelInitDate($value);
break;
case 17:
+ $this->setDelDueDate($value);
+ break;
+ case 18:
$this->setDelPriority($value);
break;
} // switch()
@@ -1340,53 +1390,57 @@ abstract class BaseListInbox extends BaseObject implements Persistent
if (array_key_exists($keys[5], $arr)) {
$this->setAppNumber($arr[$keys[5]]);
}
-
+
if (array_key_exists($keys[6], $arr)) {
- $this->setAppTitle($arr[$keys[6]]);
+ $this->setAppStatus($arr[$keys[6]]);
}
if (array_key_exists($keys[7], $arr)) {
- $this->setAppProTitle($arr[$keys[7]]);
+ $this->setAppTitle($arr[$keys[7]]);
}
if (array_key_exists($keys[8], $arr)) {
- $this->setAppTasTitle($arr[$keys[8]]);
+ $this->setAppProTitle($arr[$keys[8]]);
}
if (array_key_exists($keys[9], $arr)) {
- $this->setAppUpdateDate($arr[$keys[9]]);
+ $this->setAppTasTitle($arr[$keys[9]]);
}
if (array_key_exists($keys[10], $arr)) {
- $this->setDelPreviousUsrUid($arr[$keys[10]]);
+ $this->setAppUpdateDate($arr[$keys[10]]);
}
if (array_key_exists($keys[11], $arr)) {
- $this->setDelPreviousUsrUsername($arr[$keys[11]]);
+ $this->setDelPreviousUsrUid($arr[$keys[11]]);
}
if (array_key_exists($keys[12], $arr)) {
- $this->setDelPreviousUsrFirstname($arr[$keys[12]]);
+ $this->setDelPreviousUsrUsername($arr[$keys[12]]);
}
if (array_key_exists($keys[13], $arr)) {
- $this->setDelPreviousUsrLastname($arr[$keys[13]]);
+ $this->setDelPreviousUsrFirstname($arr[$keys[13]]);
}
if (array_key_exists($keys[14], $arr)) {
- $this->setDelDelegateDate($arr[$keys[14]]);
+ $this->setDelPreviousUsrLastname($arr[$keys[14]]);
}
if (array_key_exists($keys[15], $arr)) {
- $this->setDelInitDate($arr[$keys[15]]);
+ $this->setDelDelegateDate($arr[$keys[15]]);
}
if (array_key_exists($keys[16], $arr)) {
- $this->setDelDueDate($arr[$keys[16]]);
+ $this->setDelInitDate($arr[$keys[16]]);
}
if (array_key_exists($keys[17], $arr)) {
- $this->setDelPriority($arr[$keys[17]]);
+ $this->setDelDueDate($arr[$keys[17]]);
+ }
+
+ if (array_key_exists($keys[18], $arr)) {
+ $this->setDelPriority($arr[$keys[18]]);
}
}
@@ -1423,6 +1477,10 @@ abstract class BaseListInbox extends BaseObject implements Persistent
if ($this->isColumnModified(ListInboxPeer::APP_NUMBER)) {
$criteria->add(ListInboxPeer::APP_NUMBER, $this->app_number);
}
+
+ if ($this->isColumnModified(ListInboxPeer::APP_STATUS)) {
+ $criteria->add(ListInboxPeer::APP_STATUS, $this->app_status);
+ }
if ($this->isColumnModified(ListInboxPeer::APP_TITLE)) {
$criteria->add(ListInboxPeer::APP_TITLE, $this->app_title);
@@ -1545,6 +1603,8 @@ abstract class BaseListInbox extends BaseObject implements Persistent
$copyObj->setProUid($this->pro_uid);
$copyObj->setAppNumber($this->app_number);
+
+ $copyObj->setAppStatus($this->app_status);
$copyObj->setAppTitle($this->app_title);
diff --git a/workflow/engine/classes/model/om/BaseListInboxPeer.php b/workflow/engine/classes/model/om/BaseListInboxPeer.php
index ea20f38d9..5f0bae0a8 100644
--- a/workflow/engine/classes/model/om/BaseListInboxPeer.php
+++ b/workflow/engine/classes/model/om/BaseListInboxPeer.php
@@ -1,17 +1,20 @@
array ('AppUid', 'DelIndex', 'UsrUid', 'TasUid', 'ProUid', 'AppNumber', 'AppTitle', 'AppProTitle', 'AppTasTitle', 'AppUpdateDate', 'DelPreviousUsrUid', 'DelPreviousUsrUsername', 'DelPreviousUsrFirstname', 'DelPreviousUsrLastname', 'DelDelegateDate', 'DelInitDate', 'DelDueDate', 'DelPriority', ),
- BasePeer::TYPE_COLNAME => array (ListInboxPeer::APP_UID, ListInboxPeer::DEL_INDEX, ListInboxPeer::USR_UID, ListInboxPeer::TAS_UID, ListInboxPeer::PRO_UID, ListInboxPeer::APP_NUMBER, ListInboxPeer::APP_TITLE, ListInboxPeer::APP_PRO_TITLE, ListInboxPeer::APP_TAS_TITLE, ListInboxPeer::APP_UPDATE_DATE, ListInboxPeer::DEL_PREVIOUS_USR_UID, ListInboxPeer::DEL_PREVIOUS_USR_USERNAME, ListInboxPeer::DEL_PREVIOUS_USR_FIRSTNAME, ListInboxPeer::DEL_PREVIOUS_USR_LASTNAME, ListInboxPeer::DEL_DELEGATE_DATE, ListInboxPeer::DEL_INIT_DATE, ListInboxPeer::DEL_DUE_DATE, ListInboxPeer::DEL_PRIORITY, ),
- BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'DEL_INDEX', 'USR_UID', 'TAS_UID', 'PRO_UID', 'APP_NUMBER', 'APP_TITLE', 'APP_PRO_TITLE', 'APP_TAS_TITLE', 'APP_UPDATE_DATE', 'DEL_PREVIOUS_USR_UID', 'DEL_PREVIOUS_USR_USERNAME', 'DEL_PREVIOUS_USR_FIRSTNAME', 'DEL_PREVIOUS_USR_LASTNAME', 'DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_DUE_DATE', 'DEL_PRIORITY', ),
- BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
+ BasePeer::TYPE_PHPNAME => array ('AppUid', 'DelIndex', 'UsrUid', 'TasUid', 'ProUid', 'AppNumber', 'AppStatus','AppTitle', 'AppProTitle', 'AppTasTitle', 'AppUpdateDate', 'DelPreviousUsrUid', 'DelPreviousUsrUsername', 'DelPreviousUsrFirstname', 'DelPreviousUsrLastname', 'DelDelegateDate', 'DelInitDate', 'DelDueDate', 'DelPriority', ),
+ BasePeer::TYPE_COLNAME => array (ListInboxPeer::APP_UID, ListInboxPeer::DEL_INDEX, ListInboxPeer::USR_UID, ListInboxPeer::TAS_UID, ListInboxPeer::PRO_UID, ListInboxPeer::APP_NUMBER, ListInboxPeer::APP_STATUS, ListInboxPeer::APP_TITLE, ListInboxPeer::APP_PRO_TITLE, ListInboxPeer::APP_TAS_TITLE, ListInboxPeer::APP_UPDATE_DATE, ListInboxPeer::DEL_PREVIOUS_USR_UID, ListInboxPeer::DEL_PREVIOUS_USR_USERNAME, ListInboxPeer::DEL_PREVIOUS_USR_FIRSTNAME, ListInboxPeer::DEL_PREVIOUS_USR_LASTNAME, ListInboxPeer::DEL_DELEGATE_DATE, ListInboxPeer::DEL_INIT_DATE, ListInboxPeer::DEL_DUE_DATE, ListInboxPeer::DEL_PRIORITY, ),
+ BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'DEL_INDEX', 'USR_UID', 'TAS_UID', 'PRO_UID', 'APP_NUMBER', 'APP_STATUS', 'APP_TITLE', 'APP_PRO_TITLE', 'APP_TAS_TITLE', 'APP_UPDATE_DATE', 'DEL_PREVIOUS_USR_UID', 'DEL_PREVIOUS_USR_USERNAME', 'DEL_PREVIOUS_USR_FIRSTNAME', 'DEL_PREVIOUS_USR_LASTNAME', 'DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_DUE_DATE', 'DEL_PRIORITY', ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, )
);
/**
@@ -110,9 +116,9 @@ abstract class BaseListInboxPeer
*/
private static $fieldKeys = array (
BasePeer::TYPE_PHPNAME => array ('AppUid' => 0, 'DelIndex' => 1, 'UsrUid' => 2, 'TasUid' => 3, 'ProUid' => 4, 'AppNumber' => 5, 'AppTitle' => 6, 'AppProTitle' => 7, 'AppTasTitle' => 8, 'AppUpdateDate' => 9, 'DelPreviousUsrUid' => 10, 'DelPreviousUsrUsername' => 11, 'DelPreviousUsrFirstname' => 12, 'DelPreviousUsrLastname' => 13, 'DelDelegateDate' => 14, 'DelInitDate' => 15, 'DelDueDate' => 16, 'DelPriority' => 17, ),
- BasePeer::TYPE_COLNAME => array (ListInboxPeer::APP_UID => 0, ListInboxPeer::DEL_INDEX => 1, ListInboxPeer::USR_UID => 2, ListInboxPeer::TAS_UID => 3, ListInboxPeer::PRO_UID => 4, ListInboxPeer::APP_NUMBER => 5, ListInboxPeer::APP_TITLE => 6, ListInboxPeer::APP_PRO_TITLE => 7, ListInboxPeer::APP_TAS_TITLE => 8, ListInboxPeer::APP_UPDATE_DATE => 9, ListInboxPeer::DEL_PREVIOUS_USR_UID => 10, ListInboxPeer::DEL_PREVIOUS_USR_USERNAME => 11, ListInboxPeer::DEL_PREVIOUS_USR_FIRSTNAME => 12, ListInboxPeer::DEL_PREVIOUS_USR_LASTNAME => 13, ListInboxPeer::DEL_DELEGATE_DATE => 14, ListInboxPeer::DEL_INIT_DATE => 15, ListInboxPeer::DEL_DUE_DATE => 16, ListInboxPeer::DEL_PRIORITY => 17, ),
- BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'DEL_INDEX' => 1, 'USR_UID' => 2, 'TAS_UID' => 3, 'PRO_UID' => 4, 'APP_NUMBER' => 5, 'APP_TITLE' => 6, 'APP_PRO_TITLE' => 7, 'APP_TAS_TITLE' => 8, 'APP_UPDATE_DATE' => 9, 'DEL_PREVIOUS_USR_UID' => 10, 'DEL_PREVIOUS_USR_USERNAME' => 11, 'DEL_PREVIOUS_USR_FIRSTNAME' => 12, 'DEL_PREVIOUS_USR_LASTNAME' => 13, 'DEL_DELEGATE_DATE' => 14, 'DEL_INIT_DATE' => 15, 'DEL_DUE_DATE' => 16, 'DEL_PRIORITY' => 17, ),
- BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
+ BasePeer::TYPE_COLNAME => array (ListInboxPeer::APP_UID => 0, ListInboxPeer::DEL_INDEX => 1, ListInboxPeer::USR_UID => 2, ListInboxPeer::TAS_UID => 3, ListInboxPeer::PRO_UID => 4, ListInboxPeer::APP_NUMBER => 5, ListInboxPeer::APP_STATUS => 6, ListInboxPeer::APP_TITLE => 7, ListInboxPeer::APP_PRO_TITLE => 8, ListInboxPeer::APP_TAS_TITLE => 9, ListInboxPeer::APP_UPDATE_DATE => 10, ListInboxPeer::DEL_PREVIOUS_USR_UID => 11, ListInboxPeer::DEL_PREVIOUS_USR_USERNAME => 12, ListInboxPeer::DEL_PREVIOUS_USR_FIRSTNAME => 13, ListInboxPeer::DEL_PREVIOUS_USR_LASTNAME => 14, ListInboxPeer::DEL_DELEGATE_DATE => 15, ListInboxPeer::DEL_INIT_DATE => 16, ListInboxPeer::DEL_DUE_DATE => 17, ListInboxPeer::DEL_PRIORITY => 18, ),
+ BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'DEL_INDEX' => 1, 'USR_UID' => 2, 'TAS_UID' => 3, 'PRO_UID' => 4, 'APP_NUMBER' => 5, 'APP_STATUS' => 6, 'APP_TITLE' => 7, 'APP_PRO_TITLE' => 8, 'APP_TAS_TITLE' => 9, 'APP_UPDATE_DATE' => 10, 'DEL_PREVIOUS_USR_UID' => 11, 'DEL_PREVIOUS_USR_USERNAME' => 12, 'DEL_PREVIOUS_USR_FIRSTNAME' => 13, 'DEL_PREVIOUS_USR_LASTNAME' => 14, 'DEL_DELEGATE_DATE' => 15, 'DEL_INIT_DATE' => 16, 'DEL_DUE_DATE' => 17, 'DEL_PRIORITY' => 18, ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 )
);
/**
@@ -224,6 +230,8 @@ abstract class BaseListInboxPeer
$criteria->addSelectColumn(ListInboxPeer::PRO_UID);
$criteria->addSelectColumn(ListInboxPeer::APP_NUMBER);
+
+ $criteria->addSelectColumn(ListInboxPeer::APP_STATUS);
$criteria->addSelectColumn(ListInboxPeer::APP_TITLE);
diff --git a/workflow/engine/classes/model/om/BaseListParticipatedLast.php b/workflow/engine/classes/model/om/BaseListParticipatedLast.php
index 6b6288169..6d41df0a8 100644
--- a/workflow/engine/classes/model/om/BaseListParticipatedLast.php
+++ b/workflow/engine/classes/model/om/BaseListParticipatedLast.php
@@ -9,13 +9,15 @@ include_once 'propel/util/Criteria.php';
include_once 'classes/model/ListParticipatedLastPeer.php';
+
/**
* Base class that represents a row from the 'LIST_PARTICIPATED_LAST' table.
*
*
*
* @package workflow.classes.model.om
- */
+*/
+
abstract class BaseListParticipatedLast extends BaseObject implements Persistent
{
@@ -33,6 +35,12 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
*/
protected $app_uid = '';
+ /**
+ * The value for the del_index field.
+ * @var int
+ */
+ protected $del_index = 0;
+
/**
* The value for the usr_uid field.
* @var string
@@ -76,10 +84,10 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
protected $app_tas_title = '';
/**
- * The value for the del_index field.
- * @var int
+ * The value for the app_status field.
+ * @var string
*/
- protected $del_index = 0;
+ protected $app_status = '0';
/**
* The value for the del_previous_usr_uid field.
@@ -105,6 +113,24 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
*/
protected $del_previous_usr_lastname = '';
+ /**
+ * The value for the del_current_usr_username field.
+ * @var string
+ */
+ protected $del_current_usr_username = '';
+
+ /**
+ * The value for the del_current_usr_firstname field.
+ * @var string
+ */
+ protected $del_current_usr_firstname = '';
+
+ /**
+ * The value for the del_current_usr_lastname field.
+ * @var string
+ */
+ protected $del_current_usr_lastname = '';
+
/**
* The value for the del_delegate_date field.
* @var int
@@ -128,6 +154,12 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
* @var string
*/
protected $del_priority = '3';
+
+ /**
+ * The value for the del_thread_status field.
+ * @var string
+ */
+ protected $del_thread_status = '';
/**
* Flag to prevent endless save loop, if this object is referenced
@@ -153,7 +185,18 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
return $this->app_uid;
}
+
+ /**
+ * Get the [del_index] column value.
+ *
+ * @return int
+ */
+ public function getDelIndex()
+ {
+ return $this->del_index;
+ }
+
/**
* Get the [usr_uid] column value.
*
@@ -232,16 +275,16 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
}
/**
- * Get the [del_index] column value.
+ * Get the [app_status] column value.
*
- * @return int
+ * @return string
*/
- public function getDelIndex()
+ public function getAppStatus()
{
- return $this->del_index;
+ return $this->app_status;
}
-
+
/**
* Get the [del_previous_usr_uid] column value.
*
@@ -286,6 +329,39 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
return $this->del_previous_usr_lastname;
}
+ /**
+ * Get the [del_current_usr_username] column value.
+ *
+ * @return string
+ */
+ public function getDelCurrentUsrUsername()
+ {
+
+ return $this->del_current_usr_username;
+ }
+
+ /**
+ * Get the [del_current_usr_firstname] column value.
+ *
+ * @return string
+ */
+ public function getDelCurrentUsrFirstname()
+ {
+
+ return $this->del_current_usr_firstname;
+ }
+
+ /**
+ * Get the [del_current_usr_lastname] column value.
+ *
+ * @return string
+ */
+ public function getDelCurrentUsrLastname()
+ {
+
+ return $this->del_current_usr_lastname;
+ }
+
/**
* Get the [optionally formatted] [del_delegate_date] column value.
*
@@ -392,6 +468,17 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
return $this->del_priority;
}
+
+ /**
+ * Get the [del_thread_status] column value.
+ *
+ * @return string
+ */
+ public function getDelThreadStatus()
+ {
+
+ return $this->del_thread_status;
+ }
/**
* Set the value of [app_uid] column.
@@ -414,6 +501,28 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
}
} // setAppUid()
+
+ /**
+ * Set the value of [del_index] column.
+ *
+ * @param int $v new value
+ * @return void
+ */
+ public function setDelIndex($v)
+ {
+
+ // Since the native PHP type for this column is integer,
+ // we will cast the input value to an int (if it is not).
+ if ($v !== null && !is_int($v) && is_numeric($v)) {
+ $v = (int) $v;
+ }
+
+ if ($this->del_index !== $v || $v === 0) {
+ $this->del_index = $v;
+ $this->modifiedColumns[] = ListParticipatedLastPeer::DEL_INDEX;
+ }
+
+ } // setDelIndex()
/**
* Set the value of [usr_uid] column.
@@ -570,26 +679,26 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
} // setAppTasTitle()
/**
- * Set the value of [del_index] column.
+ * Set the value of [app_status] column.
*
- * @param int $v new value
+ * @param string $v new value
* @return void
*/
- public function setDelIndex($v)
+ public function setAppStatus($v)
{
- // Since the native PHP type for this column is integer,
- // we will cast the input value to an int (if it is not).
- if ($v !== null && !is_int($v) && is_numeric($v)) {
- $v = (int) $v;
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
}
- if ($this->del_index !== $v || $v === 0) {
- $this->del_index = $v;
- $this->modifiedColumns[] = ListParticipatedLastPeer::DEL_INDEX;
+ if ($this->app_status !== $v || $v === '0') {
+ $this->app_status = $v;
+ $this->modifiedColumns[] = ListParticipatedLastPeer::APP_STATUS;
}
- } // setDelIndex()
+ } // setAppStatus()
/**
* Set the value of [del_previous_usr_uid] column.
@@ -679,6 +788,72 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
} // setDelPreviousUsrLastname()
+ /**
+ * Set the value of [del_current_usr_username] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setDelCurrentUsrUsername($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->del_current_usr_username !== $v || $v === '') {
+ $this->del_current_usr_username = $v;
+ $this->modifiedColumns[] = ListParticipatedLastPeer::DEL_CURRENT_USR_USERNAME;
+ }
+
+ } // setDelCurrentUsrUsername()
+
+ /**
+ * Set the value of [del_current_usr_firstname] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setDelCurrentUsrFirstname($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->del_current_usr_firstname !== $v || $v === '') {
+ $this->del_current_usr_firstname = $v;
+ $this->modifiedColumns[] = ListParticipatedLastPeer::DEL_CURRENT_USR_FIRSTNAME;
+ }
+
+ } // setDelCurrentUsrFirstname()
+
+ /**
+ * Set the value of [del_current_usr_lastname] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setDelCurrentUsrLastname($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->del_current_usr_lastname !== $v || $v === '') {
+ $this->del_current_usr_lastname = $v;
+ $this->modifiedColumns[] = ListParticipatedLastPeer::DEL_CURRENT_USR_LASTNAME;
+ }
+
+ } // setDelCurrentUsrLastname()
+
/**
* Set the value of [del_delegate_date] column.
*
@@ -787,6 +962,28 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
}
} // setDelPriority()
+
+ /**
+ * Set the value of [del_thread_status] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setDelThreadStatus($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->del_thread_status !== $v || $v === 'OPEN') {
+ $this->del_thread_status = $v;
+ $this->modifiedColumns[] = ListParticipatedLastPeer::DEL_THREAD_STATUS;
+ }
+
+ } // setDelThreadStatus()
/**
* Hydrates (populates) the object variables with values from the database resultset.
@@ -806,45 +1003,55 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
try {
$this->app_uid = $rs->getString($startcol + 0);
+
+ $this->del_index = $rs->getInt($startcol + 1);
- $this->usr_uid = $rs->getString($startcol + 1);
+ $this->usr_uid = $rs->getString($startcol + 2);
- $this->tas_uid = $rs->getString($startcol + 2);
+ $this->tas_uid = $rs->getString($startcol + 3);
- $this->pro_uid = $rs->getString($startcol + 3);
+ $this->pro_uid = $rs->getString($startcol + 4);
- $this->app_number = $rs->getInt($startcol + 4);
+ $this->app_number = $rs->getInt($startcol + 5);
- $this->app_title = $rs->getString($startcol + 5);
+ $this->app_title = $rs->getString($startcol + 6);
- $this->app_pro_title = $rs->getString($startcol + 6);
+ $this->app_pro_title = $rs->getString($startcol + 7);
- $this->app_tas_title = $rs->getString($startcol + 7);
+ $this->app_tas_title = $rs->getString($startcol + 8);
- $this->del_index = $rs->getInt($startcol + 8);
+ $this->app_status = $rs->getString($startcol + 9);
- $this->del_previous_usr_uid = $rs->getString($startcol + 9);
+ $this->del_previous_usr_uid = $rs->getString($startcol + 10);
- $this->del_previous_usr_username = $rs->getString($startcol + 10);
+ $this->del_previous_usr_username = $rs->getString($startcol + 11);
- $this->del_previous_usr_firstname = $rs->getString($startcol + 11);
+ $this->del_previous_usr_firstname = $rs->getString($startcol + 12);
- $this->del_previous_usr_lastname = $rs->getString($startcol + 12);
+ $this->del_previous_usr_lastname = $rs->getString($startcol + 13);
- $this->del_delegate_date = $rs->getTimestamp($startcol + 13, null);
+ $this->del_current_usr_username = $rs->getString($startcol + 14);
- $this->del_init_date = $rs->getTimestamp($startcol + 14, null);
+ $this->del_current_usr_firstname = $rs->getString($startcol + 15);
- $this->del_due_date = $rs->getTimestamp($startcol + 15, null);
+ $this->del_current_usr_lastname = $rs->getString($startcol + 16);
- $this->del_priority = $rs->getString($startcol + 16);
+ $this->del_delegate_date = $rs->getTimestamp($startcol + 17, null);
+
+ $this->del_init_date = $rs->getTimestamp($startcol + 18, null);
+
+ $this->del_due_date = $rs->getTimestamp($startcol + 19, null);
+
+ $this->del_priority = $rs->getString($startcol + 20);
+
+ $this->del_thread_status = $rs->getString($startcol + 21);
$this->resetModified();
$this->setNew(false);
// FIXME - using NUM_COLUMNS may be clearer.
- return $startcol + 17; // 17 = ListParticipatedLastPeer::NUM_COLUMNS - ListParticipatedLastPeer::NUM_LAZY_LOAD_COLUMNS).
+ return $startcol + 22; // 22 = ListParticipatedLastPeer::NUM_COLUMNS - ListParticipatedLastPeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating ListParticipatedLast object", $e);
@@ -1052,53 +1259,68 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
return $this->getAppUid();
break;
case 1:
- return $this->getUsrUid();
- break;
- case 2:
- return $this->getTasUid();
- break;
- case 3:
- return $this->getProUid();
- break;
- case 4:
- return $this->getAppNumber();
- break;
- case 5:
- return $this->getAppTitle();
- break;
- case 6:
- return $this->getAppProTitle();
- break;
- case 7:
- return $this->getAppTasTitle();
- break;
- case 8:
return $this->getDelIndex();
break;
+ case 2:
+ return $this->getUsrUid();
+ break;
+ case 3:
+ return $this->getTasUid();
+ break;
+ case 4:
+ return $this->getProUid();
+ break;
+ case 5:
+ return $this->getAppNumber();
+ break;
+ case 6:
+ return $this->getAppTitle();
+ break;
+ case 7:
+ return $this->getAppProTitle();
+ break;
+ case 8:
+ return $this->getAppTasTitle();
+ break;
case 9:
+ return $this->getAppStatus();
+ break;
+ case 10:
return $this->getDelPreviousUsrUid();
break;
- case 10:
+ case 11:
return $this->getDelPreviousUsrUsername();
break;
- case 11:
+ case 12:
return $this->getDelPreviousUsrFirstname();
break;
- case 12:
+ case 13:
return $this->getDelPreviousUsrLastname();
break;
- case 13:
- return $this->getDelDelegateDate();
- break;
case 14:
- return $this->getDelInitDate();
+ return $this->getDelCurrentUsrUsername();
break;
case 15:
- return $this->getDelDueDate();
+ return $this->getDelCurrentUsrFirstname();
break;
case 16:
+ return $this->getDelCurrentUsrLastname();
+ break;
+ case 17:
+ return $this->getDelDelegateDate();
+ break;
+ case 18:
+ return $this->getDelInitDate();
+ break;
+ case 19:
+ return $this->getDelDueDate();
+ break;
+ case 20:
return $this->getDelPriority();
break;
+ case 21:
+ return $this->getDelThreadStatus();
+ break;
default:
return null;
break;
@@ -1120,22 +1342,27 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
$keys = ListParticipatedLastPeer::getFieldNames($keyType);
$result = array(
$keys[0] => $this->getAppUid(),
- $keys[1] => $this->getUsrUid(),
- $keys[2] => $this->getTasUid(),
- $keys[3] => $this->getProUid(),
- $keys[4] => $this->getAppNumber(),
- $keys[5] => $this->getAppTitle(),
- $keys[6] => $this->getAppProTitle(),
- $keys[7] => $this->getAppTasTitle(),
- $keys[8] => $this->getDelIndex(),
- $keys[9] => $this->getDelPreviousUsrUid(),
- $keys[10] => $this->getDelPreviousUsrUsername(),
- $keys[11] => $this->getDelPreviousUsrFirstname(),
- $keys[12] => $this->getDelPreviousUsrLastname(),
- $keys[13] => $this->getDelDelegateDate(),
- $keys[14] => $this->getDelInitDate(),
- $keys[15] => $this->getDelDueDate(),
- $keys[16] => $this->getDelPriority(),
+ $keys[1] => $this->getDelIndex(),
+ $keys[2] => $this->getUsrUid(),
+ $keys[3] => $this->getTasUid(),
+ $keys[4] => $this->getProUid(),
+ $keys[5] => $this->getAppNumber(),
+ $keys[6] => $this->getAppTitle(),
+ $keys[7] => $this->getAppProTitle(),
+ $keys[8] => $this->getAppTasTitle(),
+ $keys[9] => $this->getAppStatus(),
+ $keys[10] => $this->getDelPreviousUsrUid(),
+ $keys[11] => $this->getDelPreviousUsrUsername(),
+ $keys[12] => $this->getDelPreviousUsrFirstname(),
+ $keys[13] => $this->getDelPreviousUsrLastname(),
+ $keys[14] => $this->getDelCurrentUsrUsername(),
+ $keys[15] => $this->getDelCurrentUsrFirstname(),
+ $keys[16] => $this->getDelCurrentUsrLastname(),
+ $keys[17] => $this->getDelDelegateDate(),
+ $keys[18] => $this->getDelInitDate(),
+ $keys[19] => $this->getDelDueDate(),
+ $keys[20] => $this->getDelPriority(),
+ $keys[21] => $this->getDelThreadStatus(),
);
return $result;
}
@@ -1171,53 +1398,68 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
$this->setAppUid($value);
break;
case 1:
+ $this->setDelIndex($value);
+ break;
+ case 2:
$this->setUsrUid($value);
break;
- case 2:
+ case 3:
$this->setTasUid($value);
break;
- case 3:
+ case 4:
$this->setProUid($value);
break;
- case 4:
+ case 5:
$this->setAppNumber($value);
break;
- case 5:
+ case 6:
$this->setAppTitle($value);
break;
- case 6:
+ case 7:
$this->setAppProTitle($value);
break;
- case 7:
+ case 8:
$this->setAppTasTitle($value);
break;
- case 8:
- $this->setDelIndex($value);
- break;
case 9:
+ $this->setAppStatus($value);
+ break;
+ case 10:
$this->setDelPreviousUsrUid($value);
break;
- case 10:
+ case 11:
$this->setDelPreviousUsrUsername($value);
break;
- case 11:
+ case 12:
$this->setDelPreviousUsrFirstname($value);
break;
- case 12:
+ case 13:
$this->setDelPreviousUsrLastname($value);
break;
- case 13:
- $this->setDelDelegateDate($value);
- break;
case 14:
- $this->setDelInitDate($value);
+ $this->setDelCurrentUsrUsername($value);
break;
case 15:
- $this->setDelDueDate($value);
+ $this->setDelCurrentUsrFirstname($value);
break;
case 16:
+ $this->setDelCurrentUsrLastname($value);
+ break;
+ case 17:
+ $this->setDelDelegateDate($value);
+ break;
+ case 18:
+ $this->setDelInitDate($value);
+ break;
+ case 19:
+ $this->setDelDueDate($value);
+ break;
+ case 20:
$this->setDelPriority($value);
break;
+ case 21:
+ $this->setDelThreadStatus($value);
+ break;
} // switch()
}
@@ -1244,69 +1486,89 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
if (array_key_exists($keys[0], $arr)) {
$this->setAppUid($arr[$keys[0]]);
}
-
+
if (array_key_exists($keys[1], $arr)) {
- $this->setUsrUid($arr[$keys[1]]);
+ $this->setDelIndex($arr[$keys[1]]);
}
if (array_key_exists($keys[2], $arr)) {
- $this->setTasUid($arr[$keys[2]]);
+ $this->setUsrUid($arr[$keys[2]]);
}
if (array_key_exists($keys[3], $arr)) {
- $this->setProUid($arr[$keys[3]]);
+ $this->setTasUid($arr[$keys[3]]);
}
if (array_key_exists($keys[4], $arr)) {
- $this->setAppNumber($arr[$keys[4]]);
+ $this->setProUid($arr[$keys[4]]);
}
if (array_key_exists($keys[5], $arr)) {
- $this->setAppTitle($arr[$keys[5]]);
+ $this->setAppNumber($arr[$keys[5]]);
}
if (array_key_exists($keys[6], $arr)) {
- $this->setAppProTitle($arr[$keys[6]]);
+ $this->setAppTitle($arr[$keys[6]]);
}
if (array_key_exists($keys[7], $arr)) {
- $this->setAppTasTitle($arr[$keys[7]]);
+ $this->setAppProTitle($arr[$keys[7]]);
}
if (array_key_exists($keys[8], $arr)) {
- $this->setDelIndex($arr[$keys[8]]);
+ $this->setAppTasTitle($arr[$keys[8]]);
}
if (array_key_exists($keys[9], $arr)) {
- $this->setDelPreviousUsrUid($arr[$keys[9]]);
- }
+ $this->setAppStatus($arr[$keys[9]]);
+ }
if (array_key_exists($keys[10], $arr)) {
- $this->setDelPreviousUsrUsername($arr[$keys[10]]);
+ $this->setDelPreviousUsrUid($arr[$keys[10]]);
}
if (array_key_exists($keys[11], $arr)) {
- $this->setDelPreviousUsrFirstname($arr[$keys[11]]);
+ $this->setDelPreviousUsrUsername($arr[$keys[11]]);
}
if (array_key_exists($keys[12], $arr)) {
- $this->setDelPreviousUsrLastname($arr[$keys[12]]);
+ $this->setDelPreviousUsrFirstname($arr[$keys[12]]);
}
if (array_key_exists($keys[13], $arr)) {
- $this->setDelDelegateDate($arr[$keys[13]]);
+ $this->setDelPreviousUsrLastname($arr[$keys[13]]);
}
if (array_key_exists($keys[14], $arr)) {
- $this->setDelInitDate($arr[$keys[14]]);
+ $this->setDelCurrentUsrUsername($arr[$keys[14]]);
}
if (array_key_exists($keys[15], $arr)) {
- $this->setDelDueDate($arr[$keys[15]]);
+ $this->setDelCurrentUsrFirstname($arr[$keys[15]]);
}
if (array_key_exists($keys[16], $arr)) {
- $this->setDelPriority($arr[$keys[16]]);
+ $this->setDelCurrentUsrLastname($arr[$keys[16]]);
+ }
+
+ if (array_key_exists($keys[17], $arr)) {
+ $this->setDelDelegateDate($arr[$keys[17]]);
+ }
+
+ if (array_key_exists($keys[18], $arr)) {
+ $this->setDelInitDate($arr[$keys[18]]);
+ }
+
+ if (array_key_exists($keys[19], $arr)) {
+ $this->setDelDueDate($arr[$keys[19]]);
+ }
+
+ if (array_key_exists($keys[20], $arr)) {
+ $this->setDelPriority($arr[$keys[20]]);
+ }
+
+ if (array_key_exists($keys[21], $arr)) {
+ $this->setDelThreadStatus($arr[$keys[21]]);
}
}
@@ -1323,6 +1585,10 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
if ($this->isColumnModified(ListParticipatedLastPeer::APP_UID)) {
$criteria->add(ListParticipatedLastPeer::APP_UID, $this->app_uid);
}
+
+ if ($this->isColumnModified(ListParticipatedLastPeer::DEL_INDEX)) {
+ $criteria->add(ListParticipatedLastPeer::DEL_INDEX, $this->del_index);
+ }
if ($this->isColumnModified(ListParticipatedLastPeer::USR_UID)) {
$criteria->add(ListParticipatedLastPeer::USR_UID, $this->usr_uid);
@@ -1352,9 +1618,9 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
$criteria->add(ListParticipatedLastPeer::APP_TAS_TITLE, $this->app_tas_title);
}
- if ($this->isColumnModified(ListParticipatedLastPeer::DEL_INDEX)) {
- $criteria->add(ListParticipatedLastPeer::DEL_INDEX, $this->del_index);
- }
+ if ($this->isColumnModified(ListParticipatedLastPeer::APP_STATUS)) {
+ $criteria->add(ListParticipatedLastPeer::APP_STATUS, $this->app_status);
+ }
if ($this->isColumnModified(ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID)) {
$criteria->add(ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID, $this->del_previous_usr_uid);
@@ -1372,6 +1638,18 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
$criteria->add(ListParticipatedLastPeer::DEL_PREVIOUS_USR_LASTNAME, $this->del_previous_usr_lastname);
}
+ if ($this->isColumnModified(ListParticipatedLastPeer::DEL_CURRENT_USR_USERNAME)) {
+ $criteria->add(ListParticipatedLastPeer::DEL_CURRENT_USR_USERNAME, $this->del_current_usr_username);
+ }
+
+ if ($this->isColumnModified(ListParticipatedLastPeer::DEL_CURRENT_USR_FIRSTNAME)) {
+ $criteria->add(ListParticipatedLastPeer::DEL_CURRENT_USR_FIRSTNAME, $this->del_current_usr_firstname);
+ }
+
+ if ($this->isColumnModified(ListParticipatedLastPeer::DEL_CURRENT_USR_LASTNAME)) {
+ $criteria->add(ListParticipatedLastPeer::DEL_CURRENT_USR_LASTNAME, $this->del_current_usr_lastname);
+ }
+
if ($this->isColumnModified(ListParticipatedLastPeer::DEL_DELEGATE_DATE)) {
$criteria->add(ListParticipatedLastPeer::DEL_DELEGATE_DATE, $this->del_delegate_date);
}
@@ -1387,6 +1665,10 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
if ($this->isColumnModified(ListParticipatedLastPeer::DEL_PRIORITY)) {
$criteria->add(ListParticipatedLastPeer::DEL_PRIORITY, $this->del_priority);
}
+
+ if ($this->isColumnModified(ListParticipatedLastPeer::DEL_THREAD_STATUS)) {
+ $criteria->add(ListParticipatedLastPeer::DEL_THREAD_STATUS, $this->del_thread_status);
+ }
return $criteria;
@@ -1405,6 +1687,7 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
$criteria = new Criteria(ListParticipatedLastPeer::DATABASE_NAME);
$criteria->add(ListParticipatedLastPeer::APP_UID, $this->app_uid);
+ $criteria->add(ListParticipatedLastPeer::DEL_INDEX, $this->del_index);
$criteria->add(ListParticipatedLastPeer::USR_UID, $this->usr_uid);
return $criteria;
@@ -1420,8 +1703,10 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
$pks = array();
$pks[0] = $this->getAppUid();
+
+ $pks[1] = $this->getDelIndex();
- $pks[1] = $this->getUsrUid();
+ $pks[2] = $this->getUsrUid();
return $pks;
}
@@ -1436,8 +1721,10 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
{
$this->setAppUid($keys[0]);
+
+ $this->setDelIndex($keys[1]);
- $this->setUsrUid($keys[1]);
+ $this->setUsrUid($keys[2]);
}
@@ -1466,7 +1753,9 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
$copyObj->setAppTasTitle($this->app_tas_title);
- $copyObj->setDelIndex($this->del_index);
+ $copyObj->setAppStatus($this->app_status);
+
+// $copyObj->setDelIndex($this->del_index);
$copyObj->setDelPreviousUsrUid($this->del_previous_usr_uid);
@@ -1476,6 +1765,12 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
$copyObj->setDelPreviousUsrLastname($this->del_previous_usr_lastname);
+ $copyObj->setDelCurrentUsrUsername($this->del_current_usr_username);
+
+ $copyObj->setDelCurrentUsrFirstname($this->del_current_usr_firstname);
+
+ $copyObj->setDelCurrentUsrLastname($this->del_current_usr_lastname);
+
$copyObj->setDelDelegateDate($this->del_delegate_date);
$copyObj->setDelInitDate($this->del_init_date);
@@ -1483,11 +1778,15 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
$copyObj->setDelDueDate($this->del_due_date);
$copyObj->setDelPriority($this->del_priority);
+
+ $copyObj->setDelThreadStatus($this->del_thread_status);
$copyObj->setNew(true);
$copyObj->setAppUid(''); // this is a pkey column, so set to default value
+
+ $copyObj->setDelIndex(''); // this is a pkey column, so set to default value
$copyObj->setUsrUid(''); // this is a pkey column, so set to default value
diff --git a/workflow/engine/classes/model/om/BaseListParticipatedLastPeer.php b/workflow/engine/classes/model/om/BaseListParticipatedLastPeer.php
index cd9362886..41e3a4920 100644
--- a/workflow/engine/classes/model/om/BaseListParticipatedLastPeer.php
+++ b/workflow/engine/classes/model/om/BaseListParticipatedLastPeer.php
@@ -5,13 +5,15 @@ require_once 'propel/util/BasePeer.php';
// actual class may be a subclass -- as returned by ListParticipatedLastPeer::getOMClass()
include_once 'classes/model/ListParticipatedLast.php';
+
/**
* Base static class for performing query and update operations on the 'LIST_PARTICIPATED_LAST' table.
*
*
*
* @package workflow.classes.model.om
- */
+*/
+
abstract class BaseListParticipatedLastPeer
{
@@ -25,7 +27,7 @@ abstract class BaseListParticipatedLastPeer
const CLASS_DEFAULT = 'classes.model.ListParticipatedLast';
/** The total number of columns. */
- const NUM_COLUMNS = 17;
+ const NUM_COLUMNS = 21;
/** The number of lazy-loaded columns. */
const NUM_LAZY_LOAD_COLUMNS = 0;
@@ -33,6 +35,9 @@ abstract class BaseListParticipatedLastPeer
/** the column name for the APP_UID field */
const APP_UID = 'LIST_PARTICIPATED_LAST.APP_UID';
+
+ /** the column name for the DEL_INDEX field */
+ const DEL_INDEX = 'LIST_PARTICIPATED_LAST.DEL_INDEX';
/** the column name for the USR_UID field */
const USR_UID = 'LIST_PARTICIPATED_LAST.USR_UID';
@@ -55,8 +60,8 @@ abstract class BaseListParticipatedLastPeer
/** the column name for the APP_TAS_TITLE field */
const APP_TAS_TITLE = 'LIST_PARTICIPATED_LAST.APP_TAS_TITLE';
- /** the column name for the DEL_INDEX field */
- const DEL_INDEX = 'LIST_PARTICIPATED_LAST.DEL_INDEX';
+ /** the column name for the APP_STATUS field */
+ const APP_STATUS = 'LIST_PARTICIPATED_LAST.APP_STATUS';
/** the column name for the DEL_PREVIOUS_USR_UID field */
const DEL_PREVIOUS_USR_UID = 'LIST_PARTICIPATED_LAST.DEL_PREVIOUS_USR_UID';
@@ -70,6 +75,15 @@ abstract class BaseListParticipatedLastPeer
/** the column name for the DEL_PREVIOUS_USR_LASTNAME field */
const DEL_PREVIOUS_USR_LASTNAME = 'LIST_PARTICIPATED_LAST.DEL_PREVIOUS_USR_LASTNAME';
+ /** the column name for the DEL_CURRENT_USR_USERNAME field */
+ const DEL_CURRENT_USR_USERNAME = 'LIST_PARTICIPATED_LAST.DEL_CURRENT_USR_USERNAME';
+
+ /** the column name for the DEL_CURRENT_USR_FIRSTNAME field */
+ const DEL_CURRENT_USR_FIRSTNAME = 'LIST_PARTICIPATED_LAST.DEL_CURRENT_USR_FIRSTNAME';
+
+ /** the column name for the DEL_CURRENT_USR_LASTNAME field */
+ const DEL_CURRENT_USR_LASTNAME = 'LIST_PARTICIPATED_LAST.DEL_CURRENT_USR_LASTNAME';
+
/** the column name for the DEL_DELEGATE_DATE field */
const DEL_DELEGATE_DATE = 'LIST_PARTICIPATED_LAST.DEL_DELEGATE_DATE';
@@ -81,6 +95,9 @@ abstract class BaseListParticipatedLastPeer
/** the column name for the DEL_PRIORITY field */
const DEL_PRIORITY = 'LIST_PARTICIPATED_LAST.DEL_PRIORITY';
+
+ /** the column name for the DEL_THREAD_STATUS field */
+ const DEL_THREAD_STATUS = 'LIST_PARTICIPATED_LAST.DEL_THREAD_STATUS';
/** The PHP to DB Name Mapping */
private static $phpNameMap = null;
@@ -93,10 +110,10 @@ abstract class BaseListParticipatedLastPeer
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
*/
private static $fieldNames = array (
- BasePeer::TYPE_PHPNAME => array ('AppUid', 'UsrUid', 'TasUid', 'ProUid', 'AppNumber', 'AppTitle', 'AppProTitle', 'AppTasTitle', 'DelIndex', 'DelPreviousUsrUid', 'DelPreviousUsrUsername', 'DelPreviousUsrFirstname', 'DelPreviousUsrLastname', 'DelDelegateDate', 'DelInitDate', 'DelDueDate', 'DelPriority', ),
- BasePeer::TYPE_COLNAME => array (ListParticipatedLastPeer::APP_UID, ListParticipatedLastPeer::USR_UID, ListParticipatedLastPeer::TAS_UID, ListParticipatedLastPeer::PRO_UID, ListParticipatedLastPeer::APP_NUMBER, ListParticipatedLastPeer::APP_TITLE, ListParticipatedLastPeer::APP_PRO_TITLE, ListParticipatedLastPeer::APP_TAS_TITLE, ListParticipatedLastPeer::DEL_INDEX, ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID, ListParticipatedLastPeer::DEL_PREVIOUS_USR_USERNAME, ListParticipatedLastPeer::DEL_PREVIOUS_USR_FIRSTNAME, ListParticipatedLastPeer::DEL_PREVIOUS_USR_LASTNAME, ListParticipatedLastPeer::DEL_DELEGATE_DATE, ListParticipatedLastPeer::DEL_INIT_DATE, ListParticipatedLastPeer::DEL_DUE_DATE, ListParticipatedLastPeer::DEL_PRIORITY, ),
- BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'USR_UID', 'TAS_UID', 'PRO_UID', 'APP_NUMBER', 'APP_TITLE', 'APP_PRO_TITLE', 'APP_TAS_TITLE', 'DEL_INDEX', 'DEL_PREVIOUS_USR_UID', 'DEL_PREVIOUS_USR_USERNAME', 'DEL_PREVIOUS_USR_FIRSTNAME', 'DEL_PREVIOUS_USR_LASTNAME', 'DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_DUE_DATE', 'DEL_PRIORITY', ),
- BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, )
+ BasePeer::TYPE_PHPNAME => array ('AppUid', 'DelIndex', 'UsrUid', 'TasUid', 'ProUid', 'AppNumber', 'AppTitle', 'AppProTitle', 'AppTasTitle', 'AppStatus', 'DelPreviousUsrUid', 'DelPreviousUsrUsername', 'DelPreviousUsrFirstname', 'DelPreviousUsrLastname', 'DelCurrentUsrUsername', 'DelCurrentUsrFirstname', 'DelCurrentUsrLastname', 'DelDelegateDate', 'DelInitDate', 'DelDueDate', 'DelPriority', 'DelPriority', 'DelThreadStatus'),
+ BasePeer::TYPE_COLNAME => array (ListParticipatedLastPeer::APP_UID, ListParticipatedLastPeer::DEL_INDEX, ListParticipatedLastPeer::USR_UID, ListParticipatedLastPeer::TAS_UID, ListParticipatedLastPeer::PRO_UID, ListParticipatedLastPeer::APP_NUMBER, ListParticipatedLastPeer::APP_TITLE, ListParticipatedLastPeer::APP_PRO_TITLE, ListParticipatedLastPeer::APP_TAS_TITLE, ListParticipatedLastPeer::APP_STATUS, ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID, ListParticipatedLastPeer::DEL_PREVIOUS_USR_USERNAME, ListParticipatedLastPeer::DEL_PREVIOUS_USR_FIRSTNAME, ListParticipatedLastPeer::DEL_PREVIOUS_USR_LASTNAME, ListParticipatedLastPeer::DEL_CURRENT_USR_USERNAME, ListParticipatedLastPeer::DEL_CURRENT_USR_FIRSTNAME, ListParticipatedLastPeer::DEL_CURRENT_USR_LASTNAME, ListParticipatedLastPeer::DEL_DELEGATE_DATE, ListParticipatedLastPeer::DEL_INIT_DATE, ListParticipatedLastPeer::DEL_DUE_DATE, ListParticipatedLastPeer::DEL_PRIORITY, ListParticipatedLastPeer::DEL_THREAD_STATUS, ),
+ BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'DEL_INDEX', 'USR_UID', 'TAS_UID', 'PRO_UID', 'APP_NUMBER', 'APP_TITLE', 'APP_PRO_TITLE', 'APP_TAS_TITLE', 'APP_STATUS', 'DEL_PREVIOUS_USR_UID', 'DEL_PREVIOUS_USR_USERNAME', 'DEL_PREVIOUS_USR_FIRSTNAME', 'DEL_PREVIOUS_USR_LASTNAME', 'DEL_CURRENT_USR_USERNAME', 'DEL_CURRENT_USR_FIRSTNAME', 'DEL_CURRENT_USR_LASTNAME', 'DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_DUE_DATE', 'DEL_PRIORITY', 'DEL_THREAD_STATUS', ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, )
);
/**
@@ -106,10 +123,10 @@ abstract class BaseListParticipatedLastPeer
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/
private static $fieldKeys = array (
- BasePeer::TYPE_PHPNAME => array ('AppUid' => 0, 'UsrUid' => 1, 'TasUid' => 2, 'ProUid' => 3, 'AppNumber' => 4, 'AppTitle' => 5, 'AppProTitle' => 6, 'AppTasTitle' => 7, 'DelIndex' => 8, 'DelPreviousUsrUid' => 9, 'DelPreviousUsrUsername' => 10, 'DelPreviousUsrFirstname' => 11, 'DelPreviousUsrLastname' => 12, 'DelDelegateDate' => 13, 'DelInitDate' => 14, 'DelDueDate' => 15, 'DelPriority' => 16, ),
- BasePeer::TYPE_COLNAME => array (ListParticipatedLastPeer::APP_UID => 0, ListParticipatedLastPeer::USR_UID => 1, ListParticipatedLastPeer::TAS_UID => 2, ListParticipatedLastPeer::PRO_UID => 3, ListParticipatedLastPeer::APP_NUMBER => 4, ListParticipatedLastPeer::APP_TITLE => 5, ListParticipatedLastPeer::APP_PRO_TITLE => 6, ListParticipatedLastPeer::APP_TAS_TITLE => 7, ListParticipatedLastPeer::DEL_INDEX => 8, ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID => 9, ListParticipatedLastPeer::DEL_PREVIOUS_USR_USERNAME => 10, ListParticipatedLastPeer::DEL_PREVIOUS_USR_FIRSTNAME => 11, ListParticipatedLastPeer::DEL_PREVIOUS_USR_LASTNAME => 12, ListParticipatedLastPeer::DEL_DELEGATE_DATE => 13, ListParticipatedLastPeer::DEL_INIT_DATE => 14, ListParticipatedLastPeer::DEL_DUE_DATE => 15, ListParticipatedLastPeer::DEL_PRIORITY => 16, ),
- BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'USR_UID' => 1, 'TAS_UID' => 2, 'PRO_UID' => 3, 'APP_NUMBER' => 4, 'APP_TITLE' => 5, 'APP_PRO_TITLE' => 6, 'APP_TAS_TITLE' => 7, 'DEL_INDEX' => 8, 'DEL_PREVIOUS_USR_UID' => 9, 'DEL_PREVIOUS_USR_USERNAME' => 10, 'DEL_PREVIOUS_USR_FIRSTNAME' => 11, 'DEL_PREVIOUS_USR_LASTNAME' => 12, 'DEL_DELEGATE_DATE' => 13, 'DEL_INIT_DATE' => 14, 'DEL_DUE_DATE' => 15, 'DEL_PRIORITY' => 16, ),
- BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, )
+ BasePeer::TYPE_PHPNAME => array ('AppUid' => 0, 'DelIndex' => 2, 'UsrUid' => 3, 'TasUid' => 4, 'ProUid' => 5, 'AppNumber' => 6, 'AppTitle' => 7, 'AppProTitle' => 8, 'AppTasTitle' => 9, 'AppStatus' => 9, 'DelPreviousUsrUid' => 10, 'DelPreviousUsrUsername' => 11, 'DelPreviousUsrFirstname' => 12, 'DelPreviousUsrLastname' => 13, 'DelCurrentUsrUsername' => 14, 'DelCurrentUsrFirstname' => 15, 'DelCurrentUsrLastname' => 16, 'DelDelegateDate' => 17, 'DelInitDate' => 18, 'DelDueDate' => 19, 'DelPriority' => 20, 'DelThreadStatus' => 21,),
+ BasePeer::TYPE_COLNAME => array (ListParticipatedLastPeer::APP_UID => 0, ListParticipatedLastPeer::DEL_INDEX => 1, ListParticipatedLastPeer::USR_UID => 2, ListParticipatedLastPeer::TAS_UID => 3, ListParticipatedLastPeer::PRO_UID => 4, ListParticipatedLastPeer::APP_NUMBER => 5, ListParticipatedLastPeer::APP_TITLE => 6, ListParticipatedLastPeer::APP_PRO_TITLE => 7, ListParticipatedLastPeer::APP_TAS_TITLE => 8, ListParticipatedLastPeer::APP_STATUS => 9, ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID => 10, ListParticipatedLastPeer::DEL_PREVIOUS_USR_USERNAME => 11, ListParticipatedLastPeer::DEL_PREVIOUS_USR_FIRSTNAME => 12, ListParticipatedLastPeer::DEL_PREVIOUS_USR_LASTNAME => 13, ListParticipatedLastPeer::DEL_CURRENT_USR_USERNAME => 14, ListParticipatedLastPeer::DEL_CURRENT_USR_FIRSTNAME => 15, ListParticipatedLastPeer::DEL_CURRENT_USR_LASTNAME => 16, ListParticipatedLastPeer::DEL_DELEGATE_DATE => 17, ListParticipatedLastPeer::DEL_INIT_DATE => 18, ListParticipatedLastPeer::DEL_DUE_DATE => 19, ListParticipatedLastPeer::DEL_PRIORITY => 20, ListParticipatedLastPeer::DEL_THREAD_STATUS => 21, ),
+ BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'DEL_INDEX' => 1, 'USR_UID' => 2, 'TAS_UID' => 3, 'PRO_UID' => 4, 'APP_NUMBER' => 5, 'APP_TITLE' => 6, 'APP_PRO_TITLE' => 7, 'APP_TAS_TITLE' => 8, 'APP_STATUS' => 9, 'DEL_PREVIOUS_USR_UID' => 10, 'DEL_PREVIOUS_USR_USERNAME' => 11, 'DEL_PREVIOUS_USR_FIRSTNAME' => 12, 'DEL_PREVIOUS_USR_LASTNAME' => 13, 'DEL_CURRENT_USR_USERNAME' => 14, 'DEL_CURRENT_USR_FIRSTNAME' => 15, 'DEL_CURRENT_USR_LASTNAME' => 16, 'DEL_DELEGATE_DATE' => 17, 'DEL_INIT_DATE' => 18, 'DEL_DUE_DATE' => 19, 'DEL_PRIORITY' => 20, 'DEL_THREAD_STATUS' => 21, ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, )
);
/**
@@ -211,6 +228,8 @@ abstract class BaseListParticipatedLastPeer
{
$criteria->addSelectColumn(ListParticipatedLastPeer::APP_UID);
+
+ $criteria->addSelectColumn(ListParticipatedLastPeer::DEL_INDEX);
$criteria->addSelectColumn(ListParticipatedLastPeer::USR_UID);
@@ -226,7 +245,7 @@ abstract class BaseListParticipatedLastPeer
$criteria->addSelectColumn(ListParticipatedLastPeer::APP_TAS_TITLE);
- $criteria->addSelectColumn(ListParticipatedLastPeer::DEL_INDEX);
+ $criteria->addSelectColumn(ListParticipatedLastPeer::APP_STATUS);
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID);
@@ -236,6 +255,12 @@ abstract class BaseListParticipatedLastPeer
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_PREVIOUS_USR_LASTNAME);
+ $criteria->addSelectColumn(ListParticipatedLastPeer::DEL_CURRENT_USR_USERNAME);
+
+ $criteria->addSelectColumn(ListParticipatedLastPeer::DEL_CURRENT_USR_FIRSTNAME);
+
+ $criteria->addSelectColumn(ListParticipatedLastPeer::DEL_CURRENT_USR_LASTNAME);
+
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_DELEGATE_DATE);
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_INIT_DATE);
@@ -243,6 +268,8 @@ abstract class BaseListParticipatedLastPeer
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_DUE_DATE);
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_PRIORITY);
+
+ $criteria->addSelectColumn(ListParticipatedLastPeer::DEL_THREAD_STATUS);
}
@@ -458,6 +485,9 @@ abstract class BaseListParticipatedLastPeer
$comparison = $criteria->getComparison(ListParticipatedLastPeer::APP_UID);
$selectCriteria->add(ListParticipatedLastPeer::APP_UID, $criteria->remove(ListParticipatedLastPeer::APP_UID), $comparison);
+
+ $comparison = $criteria->getComparison(ListParticipatedLastPeer::DEL_INDEX);
+ $selectCriteria->add(ListParticipatedLastPeer::DEL_INDEX, $criteria->remove(ListParticipatedLastPeer::DEL_INDEX), $comparison);
$comparison = $criteria->getComparison(ListParticipatedLastPeer::USR_UID);
$selectCriteria->add(ListParticipatedLastPeer::USR_UID, $criteria->remove(ListParticipatedLastPeer::USR_UID), $comparison);
@@ -535,10 +565,12 @@ abstract class BaseListParticipatedLastPeer
$vals[0][] = $value[0];
$vals[1][] = $value[1];
+ $vals[2][] = $value[2];
}
$criteria->add(ListParticipatedLastPeer::APP_UID, $vals[0], Criteria::IN);
- $criteria->add(ListParticipatedLastPeer::USR_UID, $vals[1], Criteria::IN);
+ $criteria->add(ListParticipatedLastPeer::DEL_INDEX, $vals[1], Criteria::IN);
+ $criteria->add(ListParticipatedLastPeer::USR_UID, $vals[2], Criteria::IN);
}
// Set the correct dbName
@@ -604,13 +636,14 @@ abstract class BaseListParticipatedLastPeer
* @param Connection $con
* @return ListParticipatedLast
*/
- public static function retrieveByPK($app_uid, $usr_uid, $con = null)
+ public static function retrieveByPK($app_uid, $usr_uid, $del_index, $con = null)
{
if ($con === null) {
$con = Propel::getConnection(self::DATABASE_NAME);
}
$criteria = new Criteria();
$criteria->add(ListParticipatedLastPeer::APP_UID, $app_uid);
+ $criteria->add(ListParticipatedLastPeer::DEL_INDEX, $del_index);
$criteria->add(ListParticipatedLastPeer::USR_UID, $usr_uid);
$v = ListParticipatedLastPeer::doSelect($criteria, $con);
diff --git a/workflow/engine/classes/model/om/BaseListPaused.php b/workflow/engine/classes/model/om/BaseListPaused.php
new file mode 100644
index 000000000..9233bc9f9
--- /dev/null
+++ b/workflow/engine/classes/model/om/BaseListPaused.php
@@ -0,0 +1,1880 @@
+app_uid;
+ }
+
+ /**
+ * Get the [del_index] column value.
+ *
+ * @return int
+ */
+ public function getDelIndex()
+ {
+
+ return $this->del_index;
+ }
+
+ /**
+ * Get the [usr_uid] column value.
+ *
+ * @return string
+ */
+ public function getUsrUid()
+ {
+
+ return $this->usr_uid;
+ }
+
+ /**
+ * Get the [tas_uid] column value.
+ *
+ * @return string
+ */
+ public function getTasUid()
+ {
+
+ return $this->tas_uid;
+ }
+
+ /**
+ * Get the [pro_uid] column value.
+ *
+ * @return string
+ */
+ public function getProUid()
+ {
+
+ return $this->pro_uid;
+ }
+
+ /**
+ * Get the [app_number] column value.
+ *
+ * @return int
+ */
+ public function getAppNumber()
+ {
+
+ return $this->app_number;
+ }
+
+ /**
+ * Get the [app_title] column value.
+ *
+ * @return string
+ */
+ public function getAppTitle()
+ {
+
+ return $this->app_title;
+ }
+
+ /**
+ * Get the [app_pro_title] column value.
+ *
+ * @return string
+ */
+ public function getAppProTitle()
+ {
+
+ return $this->app_pro_title;
+ }
+
+ /**
+ * Get the [app_tas_title] column value.
+ *
+ * @return string
+ */
+ public function getAppTasTitle()
+ {
+
+ return $this->app_tas_title;
+ }
+
+ /**
+ * Get the [optionally formatted] [app_paused_date] column value.
+ *
+ * @param string $format The date/time format string (either date()-style or strftime()-style).
+ * If format is NULL, then the integer unix timestamp will be returned.
+ * @return mixed Formatted date/time value as string or integer unix timestamp (if format is NULL).
+ * @throws PropelException - if unable to convert the date/time to timestamp.
+ */
+ public function getAppPausedDate($format = 'Y-m-d H:i:s')
+ {
+
+ if ($this->app_paused_date === null || $this->app_paused_date === '') {
+ return null;
+ } elseif (!is_int($this->app_paused_date)) {
+ // a non-timestamp value was set externally, so we convert it
+ $ts = strtotime($this->app_paused_date);
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse value of [app_paused_date] as date/time value: " .
+ var_export($this->app_paused_date, true));
+ }
+ } else {
+ $ts = $this->app_paused_date;
+ }
+ if ($format === null) {
+ return $ts;
+ } elseif (strpos($format, '%') !== false) {
+ return strftime($format, $ts);
+ } else {
+ return date($format, $ts);
+ }
+ }
+
+ /**
+ * Get the [optionally formatted] [app_restart_date] column value.
+ *
+ * @param string $format The date/time format string (either date()-style or strftime()-style).
+ * If format is NULL, then the integer unix timestamp will be returned.
+ * @return mixed Formatted date/time value as string or integer unix timestamp (if format is NULL).
+ * @throws PropelException - if unable to convert the date/time to timestamp.
+ */
+ public function getAppRestartDate($format = 'Y-m-d H:i:s')
+ {
+
+ if ($this->app_restart_date === null || $this->app_restart_date === '') {
+ return null;
+ } elseif (!is_int($this->app_restart_date)) {
+ // a non-timestamp value was set externally, so we convert it
+ $ts = strtotime($this->app_restart_date);
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse value of [app_restart_date] as date/time value: " .
+ var_export($this->app_restart_date, true));
+ }
+ } else {
+ $ts = $this->app_restart_date;
+ }
+ if ($format === null) {
+ return $ts;
+ } elseif (strpos($format, '%') !== false) {
+ return strftime($format, $ts);
+ } else {
+ return date($format, $ts);
+ }
+ }
+
+ /**
+ * Get the [del_previous_usr_uid] column value.
+ *
+ * @return string
+ */
+ public function getDelPreviousUsrUid()
+ {
+
+ return $this->del_previous_usr_uid;
+ }
+
+ /**
+ * Get the [del_previous_usr_username] column value.
+ *
+ * @return string
+ */
+ public function getDelPreviousUsrUsername()
+ {
+
+ return $this->del_previous_usr_username;
+ }
+
+ /**
+ * Get the [del_previous_usr_firstname] column value.
+ *
+ * @return string
+ */
+ public function getDelPreviousUsrFirstname()
+ {
+
+ return $this->del_previous_usr_firstname;
+ }
+
+ /**
+ * Get the [del_previous_usr_lastname] column value.
+ *
+ * @return string
+ */
+ public function getDelPreviousUsrLastname()
+ {
+
+ return $this->del_previous_usr_lastname;
+ }
+
+ /**
+ * Get the [del_current_usr_username] column value.
+ *
+ * @return string
+ */
+ public function getDelCurrentUsrUsername()
+ {
+
+ return $this->del_current_usr_username;
+ }
+
+ /**
+ * Get the [del_current_usr_firstname] column value.
+ *
+ * @return string
+ */
+ public function getDelCurrentUsrFirstname()
+ {
+
+ return $this->del_current_usr_firstname;
+ }
+
+ /**
+ * Get the [del_current_usr_lastname] column value.
+ *
+ * @return string
+ */
+ public function getDelCurrentUsrLastname()
+ {
+
+ return $this->del_current_usr_lastname;
+ }
+
+ /**
+ * Get the [optionally formatted] [del_delegate_date] column value.
+ *
+ * @param string $format The date/time format string (either date()-style or strftime()-style).
+ * If format is NULL, then the integer unix timestamp will be returned.
+ * @return mixed Formatted date/time value as string or integer unix timestamp (if format is NULL).
+ * @throws PropelException - if unable to convert the date/time to timestamp.
+ */
+ public function getDelDelegateDate($format = 'Y-m-d H:i:s')
+ {
+
+ if ($this->del_delegate_date === null || $this->del_delegate_date === '') {
+ return null;
+ } elseif (!is_int($this->del_delegate_date)) {
+ // a non-timestamp value was set externally, so we convert it
+ $ts = strtotime($this->del_delegate_date);
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse value of [del_delegate_date] as date/time value: " .
+ var_export($this->del_delegate_date, true));
+ }
+ } else {
+ $ts = $this->del_delegate_date;
+ }
+ if ($format === null) {
+ return $ts;
+ } elseif (strpos($format, '%') !== false) {
+ return strftime($format, $ts);
+ } else {
+ return date($format, $ts);
+ }
+ }
+
+ /**
+ * Get the [optionally formatted] [del_init_date] column value.
+ *
+ * @param string $format The date/time format string (either date()-style or strftime()-style).
+ * If format is NULL, then the integer unix timestamp will be returned.
+ * @return mixed Formatted date/time value as string or integer unix timestamp (if format is NULL).
+ * @throws PropelException - if unable to convert the date/time to timestamp.
+ */
+ public function getDelInitDate($format = 'Y-m-d H:i:s')
+ {
+
+ if ($this->del_init_date === null || $this->del_init_date === '') {
+ return null;
+ } elseif (!is_int($this->del_init_date)) {
+ // a non-timestamp value was set externally, so we convert it
+ $ts = strtotime($this->del_init_date);
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse value of [del_init_date] as date/time value: " .
+ var_export($this->del_init_date, true));
+ }
+ } else {
+ $ts = $this->del_init_date;
+ }
+ if ($format === null) {
+ return $ts;
+ } elseif (strpos($format, '%') !== false) {
+ return strftime($format, $ts);
+ } else {
+ return date($format, $ts);
+ }
+ }
+
+ /**
+ * Get the [optionally formatted] [del_due_date] column value.
+ *
+ * @param string $format The date/time format string (either date()-style or strftime()-style).
+ * If format is NULL, then the integer unix timestamp will be returned.
+ * @return mixed Formatted date/time value as string or integer unix timestamp (if format is NULL).
+ * @throws PropelException - if unable to convert the date/time to timestamp.
+ */
+ public function getDelDueDate($format = 'Y-m-d H:i:s')
+ {
+
+ if ($this->del_due_date === null || $this->del_due_date === '') {
+ return null;
+ } elseif (!is_int($this->del_due_date)) {
+ // a non-timestamp value was set externally, so we convert it
+ $ts = strtotime($this->del_due_date);
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse value of [del_due_date] as date/time value: " .
+ var_export($this->del_due_date, true));
+ }
+ } else {
+ $ts = $this->del_due_date;
+ }
+ if ($format === null) {
+ return $ts;
+ } elseif (strpos($format, '%') !== false) {
+ return strftime($format, $ts);
+ } else {
+ return date($format, $ts);
+ }
+ }
+
+ /**
+ * Get the [del_priority] column value.
+ *
+ * @return string
+ */
+ public function getDelPriority()
+ {
+
+ return $this->del_priority;
+ }
+
+ /**
+ * Set the value of [app_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setAppUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->app_uid !== $v || $v === '') {
+ $this->app_uid = $v;
+ $this->modifiedColumns[] = ListPausedPeer::APP_UID;
+ }
+
+ } // setAppUid()
+
+ /**
+ * Set the value of [del_index] column.
+ *
+ * @param int $v new value
+ * @return void
+ */
+ public function setDelIndex($v)
+ {
+
+ // Since the native PHP type for this column is integer,
+ // we will cast the input value to an int (if it is not).
+ if ($v !== null && !is_int($v) && is_numeric($v)) {
+ $v = (int) $v;
+ }
+
+ if ($this->del_index !== $v || $v === 0) {
+ $this->del_index = $v;
+ $this->modifiedColumns[] = ListPausedPeer::DEL_INDEX;
+ }
+
+ } // setDelIndex()
+
+ /**
+ * Set the value of [usr_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setUsrUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->usr_uid !== $v || $v === '') {
+ $this->usr_uid = $v;
+ $this->modifiedColumns[] = ListPausedPeer::USR_UID;
+ }
+
+ } // setUsrUid()
+
+ /**
+ * Set the value of [tas_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setTasUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->tas_uid !== $v || $v === '') {
+ $this->tas_uid = $v;
+ $this->modifiedColumns[] = ListPausedPeer::TAS_UID;
+ }
+
+ } // setTasUid()
+
+ /**
+ * Set the value of [pro_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setProUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->pro_uid !== $v || $v === '') {
+ $this->pro_uid = $v;
+ $this->modifiedColumns[] = ListPausedPeer::PRO_UID;
+ }
+
+ } // setProUid()
+
+ /**
+ * Set the value of [app_number] column.
+ *
+ * @param int $v new value
+ * @return void
+ */
+ public function setAppNumber($v)
+ {
+
+ // Since the native PHP type for this column is integer,
+ // we will cast the input value to an int (if it is not).
+ if ($v !== null && !is_int($v) && is_numeric($v)) {
+ $v = (int) $v;
+ }
+
+ if ($this->app_number !== $v || $v === 0) {
+ $this->app_number = $v;
+ $this->modifiedColumns[] = ListPausedPeer::APP_NUMBER;
+ }
+
+ } // setAppNumber()
+
+ /**
+ * Set the value of [app_title] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setAppTitle($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->app_title !== $v || $v === '') {
+ $this->app_title = $v;
+ $this->modifiedColumns[] = ListPausedPeer::APP_TITLE;
+ }
+
+ } // setAppTitle()
+
+ /**
+ * Set the value of [app_pro_title] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setAppProTitle($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->app_pro_title !== $v || $v === '') {
+ $this->app_pro_title = $v;
+ $this->modifiedColumns[] = ListPausedPeer::APP_PRO_TITLE;
+ }
+
+ } // setAppProTitle()
+
+ /**
+ * Set the value of [app_tas_title] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setAppTasTitle($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->app_tas_title !== $v || $v === '') {
+ $this->app_tas_title = $v;
+ $this->modifiedColumns[] = ListPausedPeer::APP_TAS_TITLE;
+ }
+
+ } // setAppTasTitle()
+
+ /**
+ * Set the value of [app_paused_date] column.
+ *
+ * @param int $v new value
+ * @return void
+ */
+ public function setAppPausedDate($v)
+ {
+
+ if ($v !== null && !is_int($v)) {
+ $ts = strtotime($v);
+ //Date/time accepts null values
+ if ($v == '') {
+ $ts = null;
+ }
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse date/time value for [app_paused_date] from input: " .
+ var_export($v, true));
+ }
+ } else {
+ $ts = $v;
+ }
+ if ($this->app_paused_date !== $ts) {
+ $this->app_paused_date = $ts;
+ $this->modifiedColumns[] = ListPausedPeer::APP_PAUSED_DATE;
+ }
+
+ } // setAppPausedDate()
+
+ /**
+ * Set the value of [app_restart_date] column.
+ *
+ * @param int $v new value
+ * @return void
+ */
+ public function setAppRestartDate($v)
+ {
+
+ if ($v !== null && !is_int($v)) {
+ $ts = strtotime($v);
+ //Date/time accepts null values
+ if ($v == '') {
+ $ts = null;
+ }
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse date/time value for [app_restart_date] from input: " .
+ var_export($v, true));
+ }
+ } else {
+ $ts = $v;
+ }
+ if ($this->app_restart_date !== $ts) {
+ $this->app_restart_date = $ts;
+ $this->modifiedColumns[] = ListPausedPeer::APP_RESTART_DATE;
+ }
+
+ } // setAppRestartDate()
+
+ /**
+ * Set the value of [del_previous_usr_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setDelPreviousUsrUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->del_previous_usr_uid !== $v || $v === '') {
+ $this->del_previous_usr_uid = $v;
+ $this->modifiedColumns[] = ListPausedPeer::DEL_PREVIOUS_USR_UID;
+ }
+
+ } // setDelPreviousUsrUid()
+
+ /**
+ * Set the value of [del_previous_usr_username] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setDelPreviousUsrUsername($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->del_previous_usr_username !== $v || $v === '') {
+ $this->del_previous_usr_username = $v;
+ $this->modifiedColumns[] = ListPausedPeer::DEL_PREVIOUS_USR_USERNAME;
+ }
+
+ } // setDelPreviousUsrUsername()
+
+ /**
+ * Set the value of [del_previous_usr_firstname] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setDelPreviousUsrFirstname($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->del_previous_usr_firstname !== $v || $v === '') {
+ $this->del_previous_usr_firstname = $v;
+ $this->modifiedColumns[] = ListPausedPeer::DEL_PREVIOUS_USR_FIRSTNAME;
+ }
+
+ } // setDelPreviousUsrFirstname()
+
+ /**
+ * Set the value of [del_previous_usr_lastname] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setDelPreviousUsrLastname($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->del_previous_usr_lastname !== $v || $v === '') {
+ $this->del_previous_usr_lastname = $v;
+ $this->modifiedColumns[] = ListPausedPeer::DEL_PREVIOUS_USR_LASTNAME;
+ }
+
+ } // setDelPreviousUsrLastname()
+
+ /**
+ * Set the value of [del_current_usr_username] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setDelCurrentUsrUsername($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->del_current_usr_username !== $v || $v === '') {
+ $this->del_current_usr_username = $v;
+ $this->modifiedColumns[] = ListPausedPeer::DEL_CURRENT_USR_USERNAME;
+ }
+
+ } // setDelCurrentUsrUsername()
+
+ /**
+ * Set the value of [del_current_usr_firstname] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setDelCurrentUsrFirstname($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->del_current_usr_firstname !== $v || $v === '') {
+ $this->del_current_usr_firstname = $v;
+ $this->modifiedColumns[] = ListPausedPeer::DEL_CURRENT_USR_FIRSTNAME;
+ }
+
+ } // setDelCurrentUsrFirstname()
+
+ /**
+ * Set the value of [del_current_usr_lastname] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setDelCurrentUsrLastname($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->del_current_usr_lastname !== $v || $v === '') {
+ $this->del_current_usr_lastname = $v;
+ $this->modifiedColumns[] = ListPausedPeer::DEL_CURRENT_USR_LASTNAME;
+ }
+
+ } // setDelCurrentUsrLastname()
+
+ /**
+ * Set the value of [del_delegate_date] column.
+ *
+ * @param int $v new value
+ * @return void
+ */
+ public function setDelDelegateDate($v)
+ {
+
+ if ($v !== null && !is_int($v)) {
+ $ts = strtotime($v);
+ //Date/time accepts null values
+ if ($v == '') {
+ $ts = null;
+ }
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse date/time value for [del_delegate_date] from input: " .
+ var_export($v, true));
+ }
+ } else {
+ $ts = $v;
+ }
+ if ($this->del_delegate_date !== $ts) {
+ $this->del_delegate_date = $ts;
+ $this->modifiedColumns[] = ListPausedPeer::DEL_DELEGATE_DATE;
+ }
+
+ } // setDelDelegateDate()
+
+ /**
+ * Set the value of [del_init_date] column.
+ *
+ * @param int $v new value
+ * @return void
+ */
+ public function setDelInitDate($v)
+ {
+
+ if ($v !== null && !is_int($v)) {
+ $ts = strtotime($v);
+ //Date/time accepts null values
+ if ($v == '') {
+ $ts = null;
+ }
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse date/time value for [del_init_date] from input: " .
+ var_export($v, true));
+ }
+ } else {
+ $ts = $v;
+ }
+ if ($this->del_init_date !== $ts) {
+ $this->del_init_date = $ts;
+ $this->modifiedColumns[] = ListPausedPeer::DEL_INIT_DATE;
+ }
+
+ } // setDelInitDate()
+
+ /**
+ * Set the value of [del_due_date] column.
+ *
+ * @param int $v new value
+ * @return void
+ */
+ public function setDelDueDate($v)
+ {
+
+ if ($v !== null && !is_int($v)) {
+ $ts = strtotime($v);
+ //Date/time accepts null values
+ if ($v == '') {
+ $ts = null;
+ }
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse date/time value for [del_due_date] from input: " .
+ var_export($v, true));
+ }
+ } else {
+ $ts = $v;
+ }
+ if ($this->del_due_date !== $ts) {
+ $this->del_due_date = $ts;
+ $this->modifiedColumns[] = ListPausedPeer::DEL_DUE_DATE;
+ }
+
+ } // setDelDueDate()
+
+ /**
+ * Set the value of [del_priority] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setDelPriority($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->del_priority !== $v || $v === '3') {
+ $this->del_priority = $v;
+ $this->modifiedColumns[] = ListPausedPeer::DEL_PRIORITY;
+ }
+
+ } // setDelPriority()
+
+ /**
+ * Hydrates (populates) the object variables with values from the database resultset.
+ *
+ * An offset (1-based "start column") is specified so that objects can be hydrated
+ * with a subset of the columns in the resultset rows. This is needed, for example,
+ * for results of JOIN queries where the resultset row includes columns from two or
+ * more tables.
+ *
+ * @param ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
+ * @param int $startcol 1-based offset column which indicates which restultset column to start with.
+ * @return int next starting column
+ * @throws PropelException - Any caught Exception will be rewrapped as a PropelException.
+ */
+ public function hydrate(ResultSet $rs, $startcol = 1)
+ {
+ try {
+
+ $this->app_uid = $rs->getString($startcol + 0);
+
+ $this->del_index = $rs->getInt($startcol + 1);
+
+ $this->usr_uid = $rs->getString($startcol + 2);
+
+ $this->tas_uid = $rs->getString($startcol + 3);
+
+ $this->pro_uid = $rs->getString($startcol + 4);
+
+ $this->app_number = $rs->getInt($startcol + 5);
+
+ $this->app_title = $rs->getString($startcol + 6);
+
+ $this->app_pro_title = $rs->getString($startcol + 7);
+
+ $this->app_tas_title = $rs->getString($startcol + 8);
+
+ $this->app_paused_date = $rs->getTimestamp($startcol + 9, null);
+
+ $this->app_restart_date = $rs->getTimestamp($startcol + 10, null);
+
+ $this->del_previous_usr_uid = $rs->getString($startcol + 11);
+
+ $this->del_previous_usr_username = $rs->getString($startcol + 12);
+
+ $this->del_previous_usr_firstname = $rs->getString($startcol + 13);
+
+ $this->del_previous_usr_lastname = $rs->getString($startcol + 14);
+
+ $this->del_current_usr_username = $rs->getString($startcol + 15);
+
+ $this->del_current_usr_firstname = $rs->getString($startcol + 16);
+
+ $this->del_current_usr_lastname = $rs->getString($startcol + 17);
+
+ $this->del_delegate_date = $rs->getTimestamp($startcol + 18, null);
+
+ $this->del_init_date = $rs->getTimestamp($startcol + 19, null);
+
+ $this->del_due_date = $rs->getTimestamp($startcol + 20, null);
+
+ $this->del_priority = $rs->getString($startcol + 21);
+
+ $this->resetModified();
+
+ $this->setNew(false);
+
+ // FIXME - using NUM_COLUMNS may be clearer.
+ return $startcol + 22; // 22 = ListPausedPeer::NUM_COLUMNS - ListPausedPeer::NUM_LAZY_LOAD_COLUMNS).
+
+ } catch (Exception $e) {
+ throw new PropelException("Error populating ListPaused object", $e);
+ }
+ }
+
+ /**
+ * Removes this object from datastore and sets delete attribute.
+ *
+ * @param Connection $con
+ * @return void
+ * @throws PropelException
+ * @see BaseObject::setDeleted()
+ * @see BaseObject::isDeleted()
+ */
+ public function delete($con = null)
+ {
+ if ($this->isDeleted()) {
+ throw new PropelException("This object has already been deleted.");
+ }
+
+ if ($con === null) {
+ $con = Propel::getConnection(ListPausedPeer::DATABASE_NAME);
+ }
+
+ try {
+ $con->begin();
+ ListPausedPeer::doDelete($this, $con);
+ $this->setDeleted(true);
+ $con->commit();
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Stores the object in the database. If the object is new,
+ * it inserts it; otherwise an update is performed. This method
+ * wraps the doSave() worker method in a transaction.
+ *
+ * @param Connection $con
+ * @return int The number of rows affected by this insert/update
+ * @throws PropelException
+ * @see doSave()
+ */
+ public function save($con = null)
+ {
+ if ($this->isDeleted()) {
+ throw new PropelException("You cannot save an object that has been deleted.");
+ }
+
+ if ($con === null) {
+ $con = Propel::getConnection(ListPausedPeer::DATABASE_NAME);
+ }
+
+ try {
+ $con->begin();
+ $affectedRows = $this->doSave($con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Stores the object in the database.
+ *
+ * If the object is new, it inserts it; otherwise an update is performed.
+ * All related objects are also updated in this method.
+ *
+ * @param Connection $con
+ * @return int The number of rows affected by this insert/update and any referring
+ * @throws PropelException
+ * @see save()
+ */
+ protected function doSave($con)
+ {
+ $affectedRows = 0; // initialize var to track total num of affected rows
+ if (!$this->alreadyInSave) {
+ $this->alreadyInSave = true;
+
+
+ // If this object has been modified, then save it to the database.
+ if ($this->isModified()) {
+ if ($this->isNew()) {
+ $pk = ListPausedPeer::doInsert($this, $con);
+ $affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
+ // should always be true here (even though technically
+ // BasePeer::doInsert() can insert multiple rows).
+
+ $this->setNew(false);
+ } else {
+ $affectedRows += ListPausedPeer::doUpdate($this, $con);
+ }
+ $this->resetModified(); // [HL] After being saved an object is no longer 'modified'
+ }
+
+ $this->alreadyInSave = false;
+ }
+ return $affectedRows;
+ } // doSave()
+
+ /**
+ * Array of ValidationFailed objects.
+ * @var array ValidationFailed[]
+ */
+ protected $validationFailures = array();
+
+ /**
+ * Gets any ValidationFailed objects that resulted from last call to validate().
+ *
+ *
+ * @return array ValidationFailed[]
+ * @see validate()
+ */
+ public function getValidationFailures()
+ {
+ return $this->validationFailures;
+ }
+
+ /**
+ * Validates the objects modified field values and all objects related to this table.
+ *
+ * If $columns is either a column name or an array of column names
+ * only those columns are validated.
+ *
+ * @param mixed $columns Column name or an array of column names.
+ * @return boolean Whether all columns pass validation.
+ * @see doValidate()
+ * @see getValidationFailures()
+ */
+ public function validate($columns = null)
+ {
+ $res = $this->doValidate($columns);
+ if ($res === true) {
+ $this->validationFailures = array();
+ return true;
+ } else {
+ $this->validationFailures = $res;
+ return false;
+ }
+ }
+
+ /**
+ * This function performs the validation work for complex object models.
+ *
+ * In addition to checking the current object, all related objects will
+ * also be validated. If all pass then true is returned; otherwise
+ * an aggreagated array of ValidationFailed objects will be returned.
+ *
+ * @param array $columns Array of column names to validate.
+ * @return mixed true if all validations pass;
+ array of ValidationFailed objects otherwise.
+ */
+ protected function doValidate($columns = null)
+ {
+ if (!$this->alreadyInValidation) {
+ $this->alreadyInValidation = true;
+ $retval = null;
+
+ $failureMap = array();
+
+
+ if (($retval = ListPausedPeer::doValidate($this, $columns)) !== true) {
+ $failureMap = array_merge($failureMap, $retval);
+ }
+
+
+
+ $this->alreadyInValidation = false;
+ }
+
+ return (!empty($failureMap) ? $failureMap : true);
+ }
+
+ /**
+ * Retrieves a field from the object by name passed in as a string.
+ *
+ * @param string $name name
+ * @param string $type The type of fieldname the $name is of:
+ * one of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return mixed Value of field.
+ */
+ public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
+ {
+ $pos = ListPausedPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
+ return $this->getByPosition($pos);
+ }
+
+ /**
+ * Retrieves a field from the object by Position as specified in the xml schema.
+ * Zero-based.
+ *
+ * @param int $pos position in xml schema
+ * @return mixed Value of field at $pos
+ */
+ public function getByPosition($pos)
+ {
+ switch($pos) {
+ case 0:
+ return $this->getAppUid();
+ break;
+ case 1:
+ return $this->getDelIndex();
+ break;
+ case 2:
+ return $this->getUsrUid();
+ break;
+ case 3:
+ return $this->getTasUid();
+ break;
+ case 4:
+ return $this->getProUid();
+ break;
+ case 5:
+ return $this->getAppNumber();
+ break;
+ case 6:
+ return $this->getAppTitle();
+ break;
+ case 7:
+ return $this->getAppProTitle();
+ break;
+ case 8:
+ return $this->getAppTasTitle();
+ break;
+ case 9:
+ return $this->getAppPausedDate();
+ break;
+ case 10:
+ return $this->getAppRestartDate();
+ break;
+ case 11:
+ return $this->getDelPreviousUsrUid();
+ break;
+ case 12:
+ return $this->getDelPreviousUsrUsername();
+ break;
+ case 13:
+ return $this->getDelPreviousUsrFirstname();
+ break;
+ case 14:
+ return $this->getDelPreviousUsrLastname();
+ break;
+ case 15:
+ return $this->getDelCurrentUsrUsername();
+ break;
+ case 16:
+ return $this->getDelCurrentUsrFirstname();
+ break;
+ case 17:
+ return $this->getDelCurrentUsrLastname();
+ break;
+ case 18:
+ return $this->getDelDelegateDate();
+ break;
+ case 19:
+ return $this->getDelInitDate();
+ break;
+ case 20:
+ return $this->getDelDueDate();
+ break;
+ case 21:
+ return $this->getDelPriority();
+ break;
+ default:
+ return null;
+ break;
+ } // switch()
+ }
+
+ /**
+ * Exports the object as an array.
+ *
+ * You can specify the key type of the array by passing one of the class
+ * type constants.
+ *
+ * @param string $keyType One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return an associative array containing the field names (as keys) and field values
+ */
+ public function toArray($keyType = BasePeer::TYPE_PHPNAME)
+ {
+ $keys = ListPausedPeer::getFieldNames($keyType);
+ $result = array(
+ $keys[0] => $this->getAppUid(),
+ $keys[1] => $this->getDelIndex(),
+ $keys[2] => $this->getUsrUid(),
+ $keys[3] => $this->getTasUid(),
+ $keys[4] => $this->getProUid(),
+ $keys[5] => $this->getAppNumber(),
+ $keys[6] => $this->getAppTitle(),
+ $keys[7] => $this->getAppProTitle(),
+ $keys[8] => $this->getAppTasTitle(),
+ $keys[9] => $this->getAppPausedDate(),
+ $keys[10] => $this->getAppRestartDate(),
+ $keys[11] => $this->getDelPreviousUsrUid(),
+ $keys[12] => $this->getDelPreviousUsrUsername(),
+ $keys[13] => $this->getDelPreviousUsrFirstname(),
+ $keys[14] => $this->getDelPreviousUsrLastname(),
+ $keys[15] => $this->getDelCurrentUsrUsername(),
+ $keys[16] => $this->getDelCurrentUsrFirstname(),
+ $keys[17] => $this->getDelCurrentUsrLastname(),
+ $keys[18] => $this->getDelDelegateDate(),
+ $keys[19] => $this->getDelInitDate(),
+ $keys[20] => $this->getDelDueDate(),
+ $keys[21] => $this->getDelPriority(),
+ );
+ return $result;
+ }
+
+ /**
+ * Sets a field from the object by name passed in as a string.
+ *
+ * @param string $name peer name
+ * @param mixed $value field value
+ * @param string $type The type of fieldname the $name is of:
+ * one of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return void
+ */
+ public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
+ {
+ $pos = ListPausedPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
+ return $this->setByPosition($pos, $value);
+ }
+
+ /**
+ * Sets a field from the object by Position as specified in the xml schema.
+ * Zero-based.
+ *
+ * @param int $pos position in xml schema
+ * @param mixed $value field value
+ * @return void
+ */
+ public function setByPosition($pos, $value)
+ {
+ switch($pos) {
+ case 0:
+ $this->setAppUid($value);
+ break;
+ case 1:
+ $this->setDelIndex($value);
+ break;
+ case 2:
+ $this->setUsrUid($value);
+ break;
+ case 3:
+ $this->setTasUid($value);
+ break;
+ case 4:
+ $this->setProUid($value);
+ break;
+ case 5:
+ $this->setAppNumber($value);
+ break;
+ case 6:
+ $this->setAppTitle($value);
+ break;
+ case 7:
+ $this->setAppProTitle($value);
+ break;
+ case 8:
+ $this->setAppTasTitle($value);
+ break;
+ case 9:
+ $this->setAppPausedDate($value);
+ break;
+ case 10:
+ $this->setAppRestartDate($value);
+ break;
+ case 11:
+ $this->setDelPreviousUsrUid($value);
+ break;
+ case 12:
+ $this->setDelPreviousUsrUsername($value);
+ break;
+ case 13:
+ $this->setDelPreviousUsrFirstname($value);
+ break;
+ case 14:
+ $this->setDelPreviousUsrLastname($value);
+ break;
+ case 15:
+ $this->setDelCurrentUsrUsername($value);
+ break;
+ case 16:
+ $this->setDelCurrentUsrFirstname($value);
+ break;
+ case 17:
+ $this->setDelCurrentUsrLastname($value);
+ break;
+ case 18:
+ $this->setDelDelegateDate($value);
+ break;
+ case 19:
+ $this->setDelInitDate($value);
+ break;
+ case 20:
+ $this->setDelDueDate($value);
+ break;
+ case 21:
+ $this->setDelPriority($value);
+ break;
+ } // switch()
+ }
+
+ /**
+ * Populates the object using an array.
+ *
+ * This is particularly useful when populating an object from one of the
+ * request arrays (e.g. $_POST). This method goes through the column
+ * names, checking to see whether a matching key exists in populated
+ * array. If so the setByName() method is called for that column.
+ *
+ * You can specify the key type of the array by additionally passing one
+ * of the class type constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME,
+ * TYPE_NUM. The default key type is the column's phpname (e.g. 'authorId')
+ *
+ * @param array $arr An array to populate the object from.
+ * @param string $keyType The type of keys the array uses.
+ * @return void
+ */
+ public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
+ {
+ $keys = ListPausedPeer::getFieldNames($keyType);
+
+ if (array_key_exists($keys[0], $arr)) {
+ $this->setAppUid($arr[$keys[0]]);
+ }
+
+ if (array_key_exists($keys[1], $arr)) {
+ $this->setDelIndex($arr[$keys[1]]);
+ }
+
+ if (array_key_exists($keys[2], $arr)) {
+ $this->setUsrUid($arr[$keys[2]]);
+ }
+
+ if (array_key_exists($keys[3], $arr)) {
+ $this->setTasUid($arr[$keys[3]]);
+ }
+
+ if (array_key_exists($keys[4], $arr)) {
+ $this->setProUid($arr[$keys[4]]);
+ }
+
+ if (array_key_exists($keys[5], $arr)) {
+ $this->setAppNumber($arr[$keys[5]]);
+ }
+
+ if (array_key_exists($keys[6], $arr)) {
+ $this->setAppTitle($arr[$keys[6]]);
+ }
+
+ if (array_key_exists($keys[7], $arr)) {
+ $this->setAppProTitle($arr[$keys[7]]);
+ }
+
+ if (array_key_exists($keys[8], $arr)) {
+ $this->setAppTasTitle($arr[$keys[8]]);
+ }
+
+ if (array_key_exists($keys[9], $arr)) {
+ $this->setAppPausedDate($arr[$keys[9]]);
+ }
+
+ if (array_key_exists($keys[10], $arr)) {
+ $this->setAppRestartDate($arr[$keys[10]]);
+ }
+
+ if (array_key_exists($keys[11], $arr)) {
+ $this->setDelPreviousUsrUid($arr[$keys[11]]);
+ }
+
+ if (array_key_exists($keys[12], $arr)) {
+ $this->setDelPreviousUsrUsername($arr[$keys[12]]);
+ }
+
+ if (array_key_exists($keys[13], $arr)) {
+ $this->setDelPreviousUsrFirstname($arr[$keys[13]]);
+ }
+
+ if (array_key_exists($keys[14], $arr)) {
+ $this->setDelPreviousUsrLastname($arr[$keys[14]]);
+ }
+
+ if (array_key_exists($keys[15], $arr)) {
+ $this->setDelCurrentUsrUsername($arr[$keys[15]]);
+ }
+
+ if (array_key_exists($keys[16], $arr)) {
+ $this->setDelCurrentUsrFirstname($arr[$keys[16]]);
+ }
+
+ if (array_key_exists($keys[17], $arr)) {
+ $this->setDelCurrentUsrLastname($arr[$keys[17]]);
+ }
+
+ if (array_key_exists($keys[18], $arr)) {
+ $this->setDelDelegateDate($arr[$keys[18]]);
+ }
+
+ if (array_key_exists($keys[19], $arr)) {
+ $this->setDelInitDate($arr[$keys[19]]);
+ }
+
+ if (array_key_exists($keys[20], $arr)) {
+ $this->setDelDueDate($arr[$keys[20]]);
+ }
+
+ if (array_key_exists($keys[21], $arr)) {
+ $this->setDelPriority($arr[$keys[21]]);
+ }
+
+ }
+
+ /**
+ * Build a Criteria object containing the values of all modified columns in this object.
+ *
+ * @return Criteria The Criteria object containing all modified values.
+ */
+ public function buildCriteria()
+ {
+ $criteria = new Criteria(ListPausedPeer::DATABASE_NAME);
+
+ if ($this->isColumnModified(ListPausedPeer::APP_UID)) {
+ $criteria->add(ListPausedPeer::APP_UID, $this->app_uid);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::DEL_INDEX)) {
+ $criteria->add(ListPausedPeer::DEL_INDEX, $this->del_index);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::USR_UID)) {
+ $criteria->add(ListPausedPeer::USR_UID, $this->usr_uid);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::TAS_UID)) {
+ $criteria->add(ListPausedPeer::TAS_UID, $this->tas_uid);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::PRO_UID)) {
+ $criteria->add(ListPausedPeer::PRO_UID, $this->pro_uid);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::APP_NUMBER)) {
+ $criteria->add(ListPausedPeer::APP_NUMBER, $this->app_number);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::APP_TITLE)) {
+ $criteria->add(ListPausedPeer::APP_TITLE, $this->app_title);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::APP_PRO_TITLE)) {
+ $criteria->add(ListPausedPeer::APP_PRO_TITLE, $this->app_pro_title);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::APP_TAS_TITLE)) {
+ $criteria->add(ListPausedPeer::APP_TAS_TITLE, $this->app_tas_title);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::APP_PAUSED_DATE)) {
+ $criteria->add(ListPausedPeer::APP_PAUSED_DATE, $this->app_paused_date);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::APP_RESTART_DATE)) {
+ $criteria->add(ListPausedPeer::APP_RESTART_DATE, $this->app_restart_date);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::DEL_PREVIOUS_USR_UID)) {
+ $criteria->add(ListPausedPeer::DEL_PREVIOUS_USR_UID, $this->del_previous_usr_uid);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::DEL_PREVIOUS_USR_USERNAME)) {
+ $criteria->add(ListPausedPeer::DEL_PREVIOUS_USR_USERNAME, $this->del_previous_usr_username);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::DEL_PREVIOUS_USR_FIRSTNAME)) {
+ $criteria->add(ListPausedPeer::DEL_PREVIOUS_USR_FIRSTNAME, $this->del_previous_usr_firstname);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::DEL_PREVIOUS_USR_LASTNAME)) {
+ $criteria->add(ListPausedPeer::DEL_PREVIOUS_USR_LASTNAME, $this->del_previous_usr_lastname);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::DEL_CURRENT_USR_USERNAME)) {
+ $criteria->add(ListPausedPeer::DEL_CURRENT_USR_USERNAME, $this->del_current_usr_username);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::DEL_CURRENT_USR_FIRSTNAME)) {
+ $criteria->add(ListPausedPeer::DEL_CURRENT_USR_FIRSTNAME, $this->del_current_usr_firstname);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::DEL_CURRENT_USR_LASTNAME)) {
+ $criteria->add(ListPausedPeer::DEL_CURRENT_USR_LASTNAME, $this->del_current_usr_lastname);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::DEL_DELEGATE_DATE)) {
+ $criteria->add(ListPausedPeer::DEL_DELEGATE_DATE, $this->del_delegate_date);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::DEL_INIT_DATE)) {
+ $criteria->add(ListPausedPeer::DEL_INIT_DATE, $this->del_init_date);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::DEL_DUE_DATE)) {
+ $criteria->add(ListPausedPeer::DEL_DUE_DATE, $this->del_due_date);
+ }
+
+ if ($this->isColumnModified(ListPausedPeer::DEL_PRIORITY)) {
+ $criteria->add(ListPausedPeer::DEL_PRIORITY, $this->del_priority);
+ }
+
+
+ return $criteria;
+ }
+
+ /**
+ * Builds a Criteria object containing the primary key for this object.
+ *
+ * Unlike buildCriteria() this method includes the primary key values regardless
+ * of whether or not they have been modified.
+ *
+ * @return Criteria The Criteria object containing value(s) for primary key(s).
+ */
+ public function buildPkeyCriteria()
+ {
+ $criteria = new Criteria(ListPausedPeer::DATABASE_NAME);
+
+ $criteria->add(ListPausedPeer::APP_UID, $this->app_uid);
+ $criteria->add(ListPausedPeer::DEL_INDEX, $this->del_index);
+
+ return $criteria;
+ }
+
+ /**
+ * Returns the composite primary key for this object.
+ * The array elements will be in same order as specified in XML.
+ * @return array
+ */
+ public function getPrimaryKey()
+ {
+ $pks = array();
+
+ $pks[0] = $this->getAppUid();
+
+ $pks[1] = $this->getDelIndex();
+
+ return $pks;
+ }
+
+ /**
+ * Set the [composite] primary key.
+ *
+ * @param array $keys The elements of the composite key (order must match the order in XML file).
+ * @return void
+ */
+ public function setPrimaryKey($keys)
+ {
+
+ $this->setAppUid($keys[0]);
+
+ $this->setDelIndex($keys[1]);
+
+ }
+
+ /**
+ * Sets contents of passed object to values from current object.
+ *
+ * If desired, this method can also make copies of all associated (fkey referrers)
+ * objects.
+ *
+ * @param object $copyObj An object of ListPaused (or compatible) type.
+ * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
+ * @throws PropelException
+ */
+ public function copyInto($copyObj, $deepCopy = false)
+ {
+
+ $copyObj->setUsrUid($this->usr_uid);
+
+ $copyObj->setTasUid($this->tas_uid);
+
+ $copyObj->setProUid($this->pro_uid);
+
+ $copyObj->setAppNumber($this->app_number);
+
+ $copyObj->setAppTitle($this->app_title);
+
+ $copyObj->setAppProTitle($this->app_pro_title);
+
+ $copyObj->setAppTasTitle($this->app_tas_title);
+
+ $copyObj->setAppPausedDate($this->app_paused_date);
+
+ $copyObj->setAppRestartDate($this->app_restart_date);
+
+ $copyObj->setDelPreviousUsrUid($this->del_previous_usr_uid);
+
+ $copyObj->setDelPreviousUsrUsername($this->del_previous_usr_username);
+
+ $copyObj->setDelPreviousUsrFirstname($this->del_previous_usr_firstname);
+
+ $copyObj->setDelPreviousUsrLastname($this->del_previous_usr_lastname);
+
+ $copyObj->setDelCurrentUsrUsername($this->del_current_usr_username);
+
+ $copyObj->setDelCurrentUsrFirstname($this->del_current_usr_firstname);
+
+ $copyObj->setDelCurrentUsrLastname($this->del_current_usr_lastname);
+
+ $copyObj->setDelDelegateDate($this->del_delegate_date);
+
+ $copyObj->setDelInitDate($this->del_init_date);
+
+ $copyObj->setDelDueDate($this->del_due_date);
+
+ $copyObj->setDelPriority($this->del_priority);
+
+
+ $copyObj->setNew(true);
+
+ $copyObj->setAppUid(''); // this is a pkey column, so set to default value
+
+ $copyObj->setDelIndex('0'); // this is a pkey column, so set to default value
+
+ }
+
+ /**
+ * Makes a copy of this object that will be inserted as a new row in table when saved.
+ * It creates a new object filling in the simple attributes, but skipping any primary
+ * keys that are defined for the table.
+ *
+ * If desired, this method can also make copies of all associated (fkey referrers)
+ * objects.
+ *
+ * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
+ * @return ListPaused Clone of current object.
+ * @throws PropelException
+ */
+ public function copy($deepCopy = false)
+ {
+ // we use get_class(), because this might be a subclass
+ $clazz = get_class($this);
+ $copyObj = new $clazz();
+ $this->copyInto($copyObj, $deepCopy);
+ return $copyObj;
+ }
+
+ /**
+ * Returns a peer instance associated with this om.
+ *
+ * Since Peer classes are not to have any instance attributes, this method returns the
+ * same instance for all member of this class. The method could therefore
+ * be static, but this would prevent one from overriding the behavior.
+ *
+ * @return ListPausedPeer
+ */
+ public function getPeer()
+ {
+ if (self::$peer === null) {
+ self::$peer = new ListPausedPeer();
+ }
+ return self::$peer;
+ }
+}
+
diff --git a/workflow/engine/classes/model/om/BaseListPausedPeer.php b/workflow/engine/classes/model/om/BaseListPausedPeer.php
new file mode 100644
index 000000000..16d0ec452
--- /dev/null
+++ b/workflow/engine/classes/model/om/BaseListPausedPeer.php
@@ -0,0 +1,662 @@
+ array ('AppUid', 'DelIndex', 'UsrUid', 'TasUid', 'ProUid', 'AppNumber', 'AppTitle', 'AppProTitle', 'AppTasTitle', 'AppPausedDate', 'AppRestartDate', 'DelPreviousUsrUid', 'DelPreviousUsrUsername', 'DelPreviousUsrFirstname', 'DelPreviousUsrLastname', 'DelCurrentUsrUsername', 'DelCurrentUsrFirstname', 'DelCurrentUsrLastname', 'DelDelegateDate', 'DelInitDate', 'DelDueDate', 'DelPriority', ),
+ BasePeer::TYPE_COLNAME => array (ListPausedPeer::APP_UID, ListPausedPeer::DEL_INDEX, ListPausedPeer::USR_UID, ListPausedPeer::TAS_UID, ListPausedPeer::PRO_UID, ListPausedPeer::APP_NUMBER, ListPausedPeer::APP_TITLE, ListPausedPeer::APP_PRO_TITLE, ListPausedPeer::APP_TAS_TITLE, ListPausedPeer::APP_PAUSED_DATE, ListPausedPeer::APP_RESTART_DATE, ListPausedPeer::DEL_PREVIOUS_USR_UID, ListPausedPeer::DEL_PREVIOUS_USR_USERNAME, ListPausedPeer::DEL_PREVIOUS_USR_FIRSTNAME, ListPausedPeer::DEL_PREVIOUS_USR_LASTNAME, ListPausedPeer::DEL_CURRENT_USR_USERNAME, ListPausedPeer::DEL_CURRENT_USR_FIRSTNAME, ListPausedPeer::DEL_CURRENT_USR_LASTNAME, ListPausedPeer::DEL_DELEGATE_DATE, ListPausedPeer::DEL_INIT_DATE, ListPausedPeer::DEL_DUE_DATE, ListPausedPeer::DEL_PRIORITY, ),
+ BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'DEL_INDEX', 'USR_UID', 'TAS_UID', 'PRO_UID', 'APP_NUMBER', 'APP_TITLE', 'APP_PRO_TITLE', 'APP_TAS_TITLE', 'APP_PAUSED_DATE', 'APP_RESTART_DATE', 'DEL_PREVIOUS_USR_UID', 'DEL_PREVIOUS_USR_USERNAME', 'DEL_PREVIOUS_USR_FIRSTNAME', 'DEL_PREVIOUS_USR_LASTNAME', 'DEL_CURRENT_USR_USERNAME', 'DEL_CURRENT_USR_FIRSTNAME', 'DEL_CURRENT_USR_LASTNAME', 'DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_DUE_DATE', 'DEL_PRIORITY', ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, )
+ );
+
+ /**
+ * holds an array of keys for quick access to the fieldnames array
+ *
+ * first dimension keys are the type constants
+ * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
+ */
+ private static $fieldKeys = array (
+ BasePeer::TYPE_PHPNAME => array ('AppUid' => 0, 'DelIndex' => 1, 'UsrUid' => 2, 'TasUid' => 3, 'ProUid' => 4, 'AppNumber' => 5, 'AppTitle' => 6, 'AppProTitle' => 7, 'AppTasTitle' => 8, 'AppPausedDate' => 9, 'AppRestartDate' => 10, 'DelPreviousUsrUid' => 11, 'DelPreviousUsrUsername' => 12, 'DelPreviousUsrFirstname' => 13, 'DelPreviousUsrLastname' => 14, 'DelCurrentUsrUsername' => 15, 'DelCurrentUsrFirstname' => 16, 'DelCurrentUsrLastname' => 17, 'DelDelegateDate' => 18, 'DelInitDate' => 19, 'DelDueDate' => 20, 'DelPriority' => 21, ),
+ BasePeer::TYPE_COLNAME => array (ListPausedPeer::APP_UID => 0, ListPausedPeer::DEL_INDEX => 1, ListPausedPeer::USR_UID => 2, ListPausedPeer::TAS_UID => 3, ListPausedPeer::PRO_UID => 4, ListPausedPeer::APP_NUMBER => 5, ListPausedPeer::APP_TITLE => 6, ListPausedPeer::APP_PRO_TITLE => 7, ListPausedPeer::APP_TAS_TITLE => 8, ListPausedPeer::APP_PAUSED_DATE => 9, ListPausedPeer::APP_RESTART_DATE => 10, ListPausedPeer::DEL_PREVIOUS_USR_UID => 11, ListPausedPeer::DEL_PREVIOUS_USR_USERNAME => 12, ListPausedPeer::DEL_PREVIOUS_USR_FIRSTNAME => 13, ListPausedPeer::DEL_PREVIOUS_USR_LASTNAME => 14, ListPausedPeer::DEL_CURRENT_USR_USERNAME => 15, ListPausedPeer::DEL_CURRENT_USR_FIRSTNAME => 16, ListPausedPeer::DEL_CURRENT_USR_LASTNAME => 17, ListPausedPeer::DEL_DELEGATE_DATE => 18, ListPausedPeer::DEL_INIT_DATE => 19, ListPausedPeer::DEL_DUE_DATE => 20, ListPausedPeer::DEL_PRIORITY => 21, ),
+ BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'DEL_INDEX' => 1, 'USR_UID' => 2, 'TAS_UID' => 3, 'PRO_UID' => 4, 'APP_NUMBER' => 5, 'APP_TITLE' => 6, 'APP_PRO_TITLE' => 7, 'APP_TAS_TITLE' => 8, 'APP_PAUSED_DATE' => 9, 'APP_RESTART_DATE' => 10, 'DEL_PREVIOUS_USR_UID' => 11, 'DEL_PREVIOUS_USR_USERNAME' => 12, 'DEL_PREVIOUS_USR_FIRSTNAME' => 13, 'DEL_PREVIOUS_USR_LASTNAME' => 14, 'DEL_CURRENT_USR_USERNAME' => 15, 'DEL_CURRENT_USR_FIRSTNAME' => 16, 'DEL_CURRENT_USR_LASTNAME' => 17, 'DEL_DELEGATE_DATE' => 18, 'DEL_INIT_DATE' => 19, 'DEL_DUE_DATE' => 20, 'DEL_PRIORITY' => 21, ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, )
+ );
+
+ /**
+ * @return MapBuilder the map builder for this peer
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function getMapBuilder()
+ {
+ include_once 'classes/model/map/ListPausedMapBuilder.php';
+ return BasePeer::getMapBuilder('classes.model.map.ListPausedMapBuilder');
+ }
+ /**
+ * Gets a map (hash) of PHP names to DB column names.
+ *
+ * @return array The PHP to DB name map for this peer
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ * @deprecated Use the getFieldNames() and translateFieldName() methods instead of this.
+ */
+ public static function getPhpNameMap()
+ {
+ if (self::$phpNameMap === null) {
+ $map = ListPausedPeer::getTableMap();
+ $columns = $map->getColumns();
+ $nameMap = array();
+ foreach ($columns as $column) {
+ $nameMap[$column->getPhpName()] = $column->getColumnName();
+ }
+ self::$phpNameMap = $nameMap;
+ }
+ return self::$phpNameMap;
+ }
+ /**
+ * Translates a fieldname to another type
+ *
+ * @param string $name field name
+ * @param string $fromType One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @param string $toType One of the class type constants
+ * @return string translated name of the field.
+ */
+ static public function translateFieldName($name, $fromType, $toType)
+ {
+ $toNames = self::getFieldNames($toType);
+ $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;
+ if ($key === null) {
+ throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true));
+ }
+ return $toNames[$key];
+ }
+
+ /**
+ * Returns an array of of field names.
+ *
+ * @param string $type The type of fieldnames to return:
+ * One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return array A list of field names
+ */
+
+ static public function getFieldNames($type = BasePeer::TYPE_PHPNAME)
+ {
+ if (!array_key_exists($type, self::$fieldNames)) {
+ throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM. ' . $type . ' was given.');
+ }
+ return self::$fieldNames[$type];
+ }
+
+ /**
+ * Convenience method which changes table.column to alias.column.
+ *
+ * Using this method you can maintain SQL abstraction while using column aliases.
+ *
+ * $c->addAlias("alias1", TablePeer::TABLE_NAME);
+ * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
+ *
+ * @param string $alias The alias for the current table.
+ * @param string $column The column name for current table. (i.e. ListPausedPeer::COLUMN_NAME).
+ * @return string
+ */
+ public static function alias($alias, $column)
+ {
+ return str_replace(ListPausedPeer::TABLE_NAME.'.', $alias.'.', $column);
+ }
+
+ /**
+ * Add all the columns needed to create a new object.
+ *
+ * Note: any columns that were marked with lazyLoad="true" in the
+ * XML schema will not be added to the select list and only loaded
+ * on demand.
+ *
+ * @param criteria object containing the columns to add.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function addSelectColumns(Criteria $criteria)
+ {
+
+ $criteria->addSelectColumn(ListPausedPeer::APP_UID);
+
+ $criteria->addSelectColumn(ListPausedPeer::DEL_INDEX);
+
+ $criteria->addSelectColumn(ListPausedPeer::USR_UID);
+
+ $criteria->addSelectColumn(ListPausedPeer::TAS_UID);
+
+ $criteria->addSelectColumn(ListPausedPeer::PRO_UID);
+
+ $criteria->addSelectColumn(ListPausedPeer::APP_NUMBER);
+
+ $criteria->addSelectColumn(ListPausedPeer::APP_TITLE);
+
+ $criteria->addSelectColumn(ListPausedPeer::APP_PRO_TITLE);
+
+ $criteria->addSelectColumn(ListPausedPeer::APP_TAS_TITLE);
+
+ $criteria->addSelectColumn(ListPausedPeer::APP_PAUSED_DATE);
+
+ $criteria->addSelectColumn(ListPausedPeer::APP_RESTART_DATE);
+
+ $criteria->addSelectColumn(ListPausedPeer::DEL_PREVIOUS_USR_UID);
+
+ $criteria->addSelectColumn(ListPausedPeer::DEL_PREVIOUS_USR_USERNAME);
+
+ $criteria->addSelectColumn(ListPausedPeer::DEL_PREVIOUS_USR_FIRSTNAME);
+
+ $criteria->addSelectColumn(ListPausedPeer::DEL_PREVIOUS_USR_LASTNAME);
+
+ $criteria->addSelectColumn(ListPausedPeer::DEL_CURRENT_USR_USERNAME);
+
+ $criteria->addSelectColumn(ListPausedPeer::DEL_CURRENT_USR_FIRSTNAME);
+
+ $criteria->addSelectColumn(ListPausedPeer::DEL_CURRENT_USR_LASTNAME);
+
+ $criteria->addSelectColumn(ListPausedPeer::DEL_DELEGATE_DATE);
+
+ $criteria->addSelectColumn(ListPausedPeer::DEL_INIT_DATE);
+
+ $criteria->addSelectColumn(ListPausedPeer::DEL_DUE_DATE);
+
+ $criteria->addSelectColumn(ListPausedPeer::DEL_PRIORITY);
+
+ }
+
+ const COUNT = 'COUNT(LIST_PAUSED.APP_UID)';
+ const COUNT_DISTINCT = 'COUNT(DISTINCT LIST_PAUSED.APP_UID)';
+
+ /**
+ * Returns the number of rows matching criteria.
+ *
+ * @param Criteria $criteria
+ * @param boolean $distinct Whether to select only distinct columns (You can also set DISTINCT modifier in Criteria).
+ * @param Connection $con
+ * @return int Number of matching rows.
+ */
+ public static function doCount(Criteria $criteria, $distinct = false, $con = null)
+ {
+ // we're going to modify criteria, so copy it first
+ $criteria = clone $criteria;
+
+ // clear out anything that might confuse the ORDER BY clause
+ $criteria->clearSelectColumns()->clearOrderByColumns();
+ if ($distinct || in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {
+ $criteria->addSelectColumn(ListPausedPeer::COUNT_DISTINCT);
+ } else {
+ $criteria->addSelectColumn(ListPausedPeer::COUNT);
+ }
+
+ // just in case we're grouping: add those columns to the select statement
+ foreach ($criteria->getGroupByColumns() as $column) {
+ $criteria->addSelectColumn($column);
+ }
+
+ $rs = ListPausedPeer::doSelectRS($criteria, $con);
+ if ($rs->next()) {
+ return $rs->getInt(1);
+ } else {
+ // no rows returned; we infer that means 0 matches.
+ return 0;
+ }
+ }
+ /**
+ * Method to select one object from the DB.
+ *
+ * @param Criteria $criteria object used to create the SELECT statement.
+ * @param Connection $con
+ * @return ListPaused
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doSelectOne(Criteria $criteria, $con = null)
+ {
+ $critcopy = clone $criteria;
+ $critcopy->setLimit(1);
+ $objects = ListPausedPeer::doSelect($critcopy, $con);
+ if ($objects) {
+ return $objects[0];
+ }
+ return null;
+ }
+ /**
+ * Method to do selects.
+ *
+ * @param Criteria $criteria The Criteria object used to build the SELECT statement.
+ * @param Connection $con
+ * @return array Array of selected Objects
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doSelect(Criteria $criteria, $con = null)
+ {
+ return ListPausedPeer::populateObjects(ListPausedPeer::doSelectRS($criteria, $con));
+ }
+ /**
+ * Prepares the Criteria object and uses the parent doSelect()
+ * method to get a ResultSet.
+ *
+ * Use this method directly if you want to just get the resultset
+ * (instead of an array of objects).
+ *
+ * @param Criteria $criteria The Criteria object used to build the SELECT statement.
+ * @param Connection $con the connection to use
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ * @return ResultSet The resultset object with numerically-indexed fields.
+ * @see BasePeer::doSelect()
+ */
+ public static function doSelectRS(Criteria $criteria, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ if (!$criteria->getSelectColumns()) {
+ $criteria = clone $criteria;
+ ListPausedPeer::addSelectColumns($criteria);
+ }
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ // BasePeer returns a Creole ResultSet, set to return
+ // rows indexed numerically.
+ return BasePeer::doSelect($criteria, $con);
+ }
+ /**
+ * The returned array will contain objects of the default type or
+ * objects that inherit from the default.
+ *
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function populateObjects(ResultSet $rs)
+ {
+ $results = array();
+
+ // set the class once to avoid overhead in the loop
+ $cls = ListPausedPeer::getOMClass();
+ $cls = Propel::import($cls);
+ // populate the object(s)
+ while ($rs->next()) {
+
+ $obj = new $cls();
+ $obj->hydrate($rs);
+ $results[] = $obj;
+
+ }
+ return $results;
+ }
+ /**
+ * Returns the TableMap related to this peer.
+ * This method is not needed for general use but a specific application could have a need.
+ * @return TableMap
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function getTableMap()
+ {
+ return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);
+ }
+
+ /**
+ * The class that the Peer will make instances of.
+ *
+ * This uses a dot-path notation which is tranalted into a path
+ * relative to a location on the PHP include_path.
+ * (e.g. path.to.MyClass -> 'path/to/MyClass.php')
+ *
+ * @return string path.to.ClassName
+ */
+ public static function getOMClass()
+ {
+ return ListPausedPeer::CLASS_DEFAULT;
+ }
+
+ /**
+ * Method perform an INSERT on the database, given a ListPaused or Criteria object.
+ *
+ * @param mixed $values Criteria or ListPaused object containing data that is used to create the INSERT statement.
+ * @param Connection $con the connection to use
+ * @return mixed The new primary key.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doInsert($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+ } else {
+ $criteria = $values->buildCriteria(); // build Criteria from ListPaused object
+ }
+
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table (I guess, conceivably)
+ $con->begin();
+ $pk = BasePeer::doInsert($criteria, $con);
+ $con->commit();
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+
+ return $pk;
+ }
+
+ /**
+ * Method perform an UPDATE on the database, given a ListPaused or Criteria object.
+ *
+ * @param mixed $values Criteria or ListPaused object containing data create the UPDATE statement.
+ * @param Connection $con The connection to use (specify Connection exert more control over transactions).
+ * @return int The number of affected rows (if supported by underlying database driver).
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doUpdate($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $selectCriteria = new Criteria(self::DATABASE_NAME);
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+
+ $comparison = $criteria->getComparison(ListPausedPeer::APP_UID);
+ $selectCriteria->add(ListPausedPeer::APP_UID, $criteria->remove(ListPausedPeer::APP_UID), $comparison);
+
+ $comparison = $criteria->getComparison(ListPausedPeer::DEL_INDEX);
+ $selectCriteria->add(ListPausedPeer::DEL_INDEX, $criteria->remove(ListPausedPeer::DEL_INDEX), $comparison);
+
+ } else {
+ $criteria = $values->buildCriteria(); // gets full criteria
+ $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
+ }
+
+ // set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ return BasePeer::doUpdate($selectCriteria, $criteria, $con);
+ }
+
+ /**
+ * Method to DELETE all rows from the LIST_PAUSED table.
+ *
+ * @return int The number of affected rows (if supported by underlying database driver).
+ */
+ public static function doDeleteAll($con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+ $affectedRows = 0; // initialize var to track total num of affected rows
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table or we could emulating ON DELETE CASCADE, etc.
+ $con->begin();
+ $affectedRows += BasePeer::doDeleteAll(ListPausedPeer::TABLE_NAME, $con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Method perform a DELETE on the database, given a ListPaused or Criteria object OR a primary key value.
+ *
+ * @param mixed $values Criteria or ListPaused object or primary key or array of primary keys
+ * which is used to create the DELETE statement
+ * @param Connection $con the connection to use
+ * @return int The number of affected rows (if supported by underlying database driver).
+ * This includes CASCADE-related rows
+ * if supported by native driver or if emulated using Propel.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doDelete($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(ListPausedPeer::DATABASE_NAME);
+ }
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+ } elseif ($values instanceof ListPaused) {
+
+ $criteria = $values->buildPkeyCriteria();
+ } else {
+ // it must be the primary key
+ $criteria = new Criteria(self::DATABASE_NAME);
+ // primary key is composite; we therefore, expect
+ // the primary key passed to be an array of pkey
+ // values
+ if (count($values) == count($values, COUNT_RECURSIVE)) {
+ // array is not multi-dimensional
+ $values = array($values);
+ }
+ $vals = array();
+ foreach ($values as $value) {
+
+ $vals[0][] = $value[0];
+ $vals[1][] = $value[1];
+ }
+
+ $criteria->add(ListPausedPeer::APP_UID, $vals[0], Criteria::IN);
+ $criteria->add(ListPausedPeer::DEL_INDEX, $vals[1], Criteria::IN);
+ }
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ $affectedRows = 0; // initialize var to track total num of affected rows
+
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table or we could emulating ON DELETE CASCADE, etc.
+ $con->begin();
+
+ $affectedRows += BasePeer::doDelete($criteria, $con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Validates all modified columns of given ListPaused object.
+ * If parameter $columns is either a single column name or an array of column names
+ * than only those columns are validated.
+ *
+ * NOTICE: This does not apply to primary or foreign keys for now.
+ *
+ * @param ListPaused $obj The object to validate.
+ * @param mixed $cols Column name or array of column names.
+ *
+ * @return mixed TRUE if all columns are valid or the error message of the first invalid column.
+ */
+ public static function doValidate(ListPaused $obj, $cols = null)
+ {
+ $columns = array();
+
+ if ($cols) {
+ $dbMap = Propel::getDatabaseMap(ListPausedPeer::DATABASE_NAME);
+ $tableMap = $dbMap->getTable(ListPausedPeer::TABLE_NAME);
+
+ if (! is_array($cols)) {
+ $cols = array($cols);
+ }
+
+ foreach ($cols as $colName) {
+ if ($tableMap->containsColumn($colName)) {
+ $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
+ $columns[$colName] = $obj->$get();
+ }
+ }
+ } else {
+
+ }
+
+ return BasePeer::doValidate(ListPausedPeer::DATABASE_NAME, ListPausedPeer::TABLE_NAME, $columns);
+ }
+
+ /**
+ * Retrieve object using using composite pkey values.
+ * @param string $app_uid
+ * @param int $del_index
+ * @param Connection $con
+ * @return ListPaused
+ */
+ public static function retrieveByPK($app_uid, $del_index, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+ $criteria = new Criteria();
+ $criteria->add(ListPausedPeer::APP_UID, $app_uid);
+ $criteria->add(ListPausedPeer::DEL_INDEX, $del_index);
+ $v = ListPausedPeer::doSelect($criteria, $con);
+
+ return !empty($v) ? $v[0] : null;
+ }
+}
+
+
+// static code to register the map builder for this Peer with the main Propel class
+if (Propel::isInit()) {
+ // the MapBuilder classes register themselves with Propel during initialization
+ // so we need to load them here.
+ try {
+ BaseListPausedPeer::getMapBuilder();
+ } catch (Exception $e) {
+ Propel::log('Could not initialize Peer: ' . $e->getMessage(), Propel::LOG_ERR);
+ }
+} else {
+ // even if Propel is not yet initialized, the map builder class can be registered
+ // now and then it will be loaded when Propel initializes.
+ require_once 'classes/model/map/ListPausedMapBuilder.php';
+ Propel::registerMapBuilder('classes.model.map.ListPausedMapBuilder');
+}
+
diff --git a/workflow/engine/classes/model/om/BaseMessageApplication.php b/workflow/engine/classes/model/om/BaseMessageApplication.php
new file mode 100644
index 000000000..ff81a8d1a
--- /dev/null
+++ b/workflow/engine/classes/model/om/BaseMessageApplication.php
@@ -0,0 +1,1088 @@
+msgapp_uid;
+ }
+
+ /**
+ * Get the [app_uid] column value.
+ *
+ * @return string
+ */
+ public function getAppUid()
+ {
+
+ return $this->app_uid;
+ }
+
+ /**
+ * Get the [prj_uid] column value.
+ *
+ * @return string
+ */
+ public function getPrjUid()
+ {
+
+ return $this->prj_uid;
+ }
+
+ /**
+ * Get the [evn_uid_throw] column value.
+ *
+ * @return string
+ */
+ public function getEvnUidThrow()
+ {
+
+ return $this->evn_uid_throw;
+ }
+
+ /**
+ * Get the [evn_uid_catch] column value.
+ *
+ * @return string
+ */
+ public function getEvnUidCatch()
+ {
+
+ return $this->evn_uid_catch;
+ }
+
+ /**
+ * Get the [msgapp_variables] column value.
+ *
+ * @return string
+ */
+ public function getMsgappVariables()
+ {
+
+ return $this->msgapp_variables;
+ }
+
+ /**
+ * Get the [msgapp_correlation] column value.
+ *
+ * @return string
+ */
+ public function getMsgappCorrelation()
+ {
+
+ return $this->msgapp_correlation;
+ }
+
+ /**
+ * Get the [optionally formatted] [msgapp_throw_date] column value.
+ *
+ * @param string $format The date/time format string (either date()-style or strftime()-style).
+ * If format is NULL, then the integer unix timestamp will be returned.
+ * @return mixed Formatted date/time value as string or integer unix timestamp (if format is NULL).
+ * @throws PropelException - if unable to convert the date/time to timestamp.
+ */
+ public function getMsgappThrowDate($format = 'Y-m-d H:i:s')
+ {
+
+ if ($this->msgapp_throw_date === null || $this->msgapp_throw_date === '') {
+ return null;
+ } elseif (!is_int($this->msgapp_throw_date)) {
+ // a non-timestamp value was set externally, so we convert it
+ $ts = strtotime($this->msgapp_throw_date);
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse value of [msgapp_throw_date] as date/time value: " .
+ var_export($this->msgapp_throw_date, true));
+ }
+ } else {
+ $ts = $this->msgapp_throw_date;
+ }
+ if ($format === null) {
+ return $ts;
+ } elseif (strpos($format, '%') !== false) {
+ return strftime($format, $ts);
+ } else {
+ return date($format, $ts);
+ }
+ }
+
+ /**
+ * Get the [optionally formatted] [msgapp_catch_date] column value.
+ *
+ * @param string $format The date/time format string (either date()-style or strftime()-style).
+ * If format is NULL, then the integer unix timestamp will be returned.
+ * @return mixed Formatted date/time value as string or integer unix timestamp (if format is NULL).
+ * @throws PropelException - if unable to convert the date/time to timestamp.
+ */
+ public function getMsgappCatchDate($format = 'Y-m-d H:i:s')
+ {
+
+ if ($this->msgapp_catch_date === null || $this->msgapp_catch_date === '') {
+ return null;
+ } elseif (!is_int($this->msgapp_catch_date)) {
+ // a non-timestamp value was set externally, so we convert it
+ $ts = strtotime($this->msgapp_catch_date);
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse value of [msgapp_catch_date] as date/time value: " .
+ var_export($this->msgapp_catch_date, true));
+ }
+ } else {
+ $ts = $this->msgapp_catch_date;
+ }
+ if ($format === null) {
+ return $ts;
+ } elseif (strpos($format, '%') !== false) {
+ return strftime($format, $ts);
+ } else {
+ return date($format, $ts);
+ }
+ }
+
+ /**
+ * Get the [msgapp_status] column value.
+ *
+ * @return string
+ */
+ public function getMsgappStatus()
+ {
+
+ return $this->msgapp_status;
+ }
+
+ /**
+ * Set the value of [msgapp_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setMsgappUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->msgapp_uid !== $v) {
+ $this->msgapp_uid = $v;
+ $this->modifiedColumns[] = MessageApplicationPeer::MSGAPP_UID;
+ }
+
+ } // setMsgappUid()
+
+ /**
+ * Set the value of [app_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setAppUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->app_uid !== $v) {
+ $this->app_uid = $v;
+ $this->modifiedColumns[] = MessageApplicationPeer::APP_UID;
+ }
+
+ } // setAppUid()
+
+ /**
+ * Set the value of [prj_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setPrjUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->prj_uid !== $v) {
+ $this->prj_uid = $v;
+ $this->modifiedColumns[] = MessageApplicationPeer::PRJ_UID;
+ }
+
+ } // setPrjUid()
+
+ /**
+ * Set the value of [evn_uid_throw] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setEvnUidThrow($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->evn_uid_throw !== $v) {
+ $this->evn_uid_throw = $v;
+ $this->modifiedColumns[] = MessageApplicationPeer::EVN_UID_THROW;
+ }
+
+ } // setEvnUidThrow()
+
+ /**
+ * Set the value of [evn_uid_catch] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setEvnUidCatch($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->evn_uid_catch !== $v) {
+ $this->evn_uid_catch = $v;
+ $this->modifiedColumns[] = MessageApplicationPeer::EVN_UID_CATCH;
+ }
+
+ } // setEvnUidCatch()
+
+ /**
+ * Set the value of [msgapp_variables] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setMsgappVariables($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->msgapp_variables !== $v || $v === '') {
+ $this->msgapp_variables = $v;
+ $this->modifiedColumns[] = MessageApplicationPeer::MSGAPP_VARIABLES;
+ }
+
+ } // setMsgappVariables()
+
+ /**
+ * Set the value of [msgapp_correlation] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setMsgappCorrelation($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->msgapp_correlation !== $v || $v === '') {
+ $this->msgapp_correlation = $v;
+ $this->modifiedColumns[] = MessageApplicationPeer::MSGAPP_CORRELATION;
+ }
+
+ } // setMsgappCorrelation()
+
+ /**
+ * Set the value of [msgapp_throw_date] column.
+ *
+ * @param int $v new value
+ * @return void
+ */
+ public function setMsgappThrowDate($v)
+ {
+
+ if ($v !== null && !is_int($v)) {
+ $ts = strtotime($v);
+ //Date/time accepts null values
+ if ($v == '') {
+ $ts = null;
+ }
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse date/time value for [msgapp_throw_date] from input: " .
+ var_export($v, true));
+ }
+ } else {
+ $ts = $v;
+ }
+ if ($this->msgapp_throw_date !== $ts) {
+ $this->msgapp_throw_date = $ts;
+ $this->modifiedColumns[] = MessageApplicationPeer::MSGAPP_THROW_DATE;
+ }
+
+ } // setMsgappThrowDate()
+
+ /**
+ * Set the value of [msgapp_catch_date] column.
+ *
+ * @param int $v new value
+ * @return void
+ */
+ public function setMsgappCatchDate($v)
+ {
+
+ if ($v !== null && !is_int($v)) {
+ $ts = strtotime($v);
+ //Date/time accepts null values
+ if ($v == '') {
+ $ts = null;
+ }
+ if ($ts === -1 || $ts === false) {
+ throw new PropelException("Unable to parse date/time value for [msgapp_catch_date] from input: " .
+ var_export($v, true));
+ }
+ } else {
+ $ts = $v;
+ }
+ if ($this->msgapp_catch_date !== $ts) {
+ $this->msgapp_catch_date = $ts;
+ $this->modifiedColumns[] = MessageApplicationPeer::MSGAPP_CATCH_DATE;
+ }
+
+ } // setMsgappCatchDate()
+
+ /**
+ * Set the value of [msgapp_status] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setMsgappStatus($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->msgapp_status !== $v || $v === 'UNREAD') {
+ $this->msgapp_status = $v;
+ $this->modifiedColumns[] = MessageApplicationPeer::MSGAPP_STATUS;
+ }
+
+ } // setMsgappStatus()
+
+ /**
+ * Hydrates (populates) the object variables with values from the database resultset.
+ *
+ * An offset (1-based "start column") is specified so that objects can be hydrated
+ * with a subset of the columns in the resultset rows. This is needed, for example,
+ * for results of JOIN queries where the resultset row includes columns from two or
+ * more tables.
+ *
+ * @param ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
+ * @param int $startcol 1-based offset column which indicates which restultset column to start with.
+ * @return int next starting column
+ * @throws PropelException - Any caught Exception will be rewrapped as a PropelException.
+ */
+ public function hydrate(ResultSet $rs, $startcol = 1)
+ {
+ try {
+
+ $this->msgapp_uid = $rs->getString($startcol + 0);
+
+ $this->app_uid = $rs->getString($startcol + 1);
+
+ $this->prj_uid = $rs->getString($startcol + 2);
+
+ $this->evn_uid_throw = $rs->getString($startcol + 3);
+
+ $this->evn_uid_catch = $rs->getString($startcol + 4);
+
+ $this->msgapp_variables = $rs->getString($startcol + 5);
+
+ $this->msgapp_correlation = $rs->getString($startcol + 6);
+
+ $this->msgapp_throw_date = $rs->getTimestamp($startcol + 7, null);
+
+ $this->msgapp_catch_date = $rs->getTimestamp($startcol + 8, null);
+
+ $this->msgapp_status = $rs->getString($startcol + 9);
+
+ $this->resetModified();
+
+ $this->setNew(false);
+
+ // FIXME - using NUM_COLUMNS may be clearer.
+ return $startcol + 10; // 10 = MessageApplicationPeer::NUM_COLUMNS - MessageApplicationPeer::NUM_LAZY_LOAD_COLUMNS).
+
+ } catch (Exception $e) {
+ throw new PropelException("Error populating MessageApplication object", $e);
+ }
+ }
+
+ /**
+ * Removes this object from datastore and sets delete attribute.
+ *
+ * @param Connection $con
+ * @return void
+ * @throws PropelException
+ * @see BaseObject::setDeleted()
+ * @see BaseObject::isDeleted()
+ */
+ public function delete($con = null)
+ {
+ if ($this->isDeleted()) {
+ throw new PropelException("This object has already been deleted.");
+ }
+
+ if ($con === null) {
+ $con = Propel::getConnection(MessageApplicationPeer::DATABASE_NAME);
+ }
+
+ try {
+ $con->begin();
+ MessageApplicationPeer::doDelete($this, $con);
+ $this->setDeleted(true);
+ $con->commit();
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Stores the object in the database. If the object is new,
+ * it inserts it; otherwise an update is performed. This method
+ * wraps the doSave() worker method in a transaction.
+ *
+ * @param Connection $con
+ * @return int The number of rows affected by this insert/update
+ * @throws PropelException
+ * @see doSave()
+ */
+ public function save($con = null)
+ {
+ if ($this->isDeleted()) {
+ throw new PropelException("You cannot save an object that has been deleted.");
+ }
+
+ if ($con === null) {
+ $con = Propel::getConnection(MessageApplicationPeer::DATABASE_NAME);
+ }
+
+ try {
+ $con->begin();
+ $affectedRows = $this->doSave($con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Stores the object in the database.
+ *
+ * If the object is new, it inserts it; otherwise an update is performed.
+ * All related objects are also updated in this method.
+ *
+ * @param Connection $con
+ * @return int The number of rows affected by this insert/update and any referring
+ * @throws PropelException
+ * @see save()
+ */
+ protected function doSave($con)
+ {
+ $affectedRows = 0; // initialize var to track total num of affected rows
+ if (!$this->alreadyInSave) {
+ $this->alreadyInSave = true;
+
+
+ // If this object has been modified, then save it to the database.
+ if ($this->isModified()) {
+ if ($this->isNew()) {
+ $pk = MessageApplicationPeer::doInsert($this, $con);
+ $affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
+ // should always be true here (even though technically
+ // BasePeer::doInsert() can insert multiple rows).
+
+ $this->setNew(false);
+ } else {
+ $affectedRows += MessageApplicationPeer::doUpdate($this, $con);
+ }
+ $this->resetModified(); // [HL] After being saved an object is no longer 'modified'
+ }
+
+ $this->alreadyInSave = false;
+ }
+ return $affectedRows;
+ } // doSave()
+
+ /**
+ * Array of ValidationFailed objects.
+ * @var array ValidationFailed[]
+ */
+ protected $validationFailures = array();
+
+ /**
+ * Gets any ValidationFailed objects that resulted from last call to validate().
+ *
+ *
+ * @return array ValidationFailed[]
+ * @see validate()
+ */
+ public function getValidationFailures()
+ {
+ return $this->validationFailures;
+ }
+
+ /**
+ * Validates the objects modified field values and all objects related to this table.
+ *
+ * If $columns is either a column name or an array of column names
+ * only those columns are validated.
+ *
+ * @param mixed $columns Column name or an array of column names.
+ * @return boolean Whether all columns pass validation.
+ * @see doValidate()
+ * @see getValidationFailures()
+ */
+ public function validate($columns = null)
+ {
+ $res = $this->doValidate($columns);
+ if ($res === true) {
+ $this->validationFailures = array();
+ return true;
+ } else {
+ $this->validationFailures = $res;
+ return false;
+ }
+ }
+
+ /**
+ * This function performs the validation work for complex object models.
+ *
+ * In addition to checking the current object, all related objects will
+ * also be validated. If all pass then true is returned; otherwise
+ * an aggreagated array of ValidationFailed objects will be returned.
+ *
+ * @param array $columns Array of column names to validate.
+ * @return mixed true if all validations pass;
+ array of ValidationFailed objects otherwise.
+ */
+ protected function doValidate($columns = null)
+ {
+ if (!$this->alreadyInValidation) {
+ $this->alreadyInValidation = true;
+ $retval = null;
+
+ $failureMap = array();
+
+
+ if (($retval = MessageApplicationPeer::doValidate($this, $columns)) !== true) {
+ $failureMap = array_merge($failureMap, $retval);
+ }
+
+
+
+ $this->alreadyInValidation = false;
+ }
+
+ return (!empty($failureMap) ? $failureMap : true);
+ }
+
+ /**
+ * Retrieves a field from the object by name passed in as a string.
+ *
+ * @param string $name name
+ * @param string $type The type of fieldname the $name is of:
+ * one of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return mixed Value of field.
+ */
+ public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
+ {
+ $pos = MessageApplicationPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
+ return $this->getByPosition($pos);
+ }
+
+ /**
+ * Retrieves a field from the object by Position as specified in the xml schema.
+ * Zero-based.
+ *
+ * @param int $pos position in xml schema
+ * @return mixed Value of field at $pos
+ */
+ public function getByPosition($pos)
+ {
+ switch($pos) {
+ case 0:
+ return $this->getMsgappUid();
+ break;
+ case 1:
+ return $this->getAppUid();
+ break;
+ case 2:
+ return $this->getPrjUid();
+ break;
+ case 3:
+ return $this->getEvnUidThrow();
+ break;
+ case 4:
+ return $this->getEvnUidCatch();
+ break;
+ case 5:
+ return $this->getMsgappVariables();
+ break;
+ case 6:
+ return $this->getMsgappCorrelation();
+ break;
+ case 7:
+ return $this->getMsgappThrowDate();
+ break;
+ case 8:
+ return $this->getMsgappCatchDate();
+ break;
+ case 9:
+ return $this->getMsgappStatus();
+ break;
+ default:
+ return null;
+ break;
+ } // switch()
+ }
+
+ /**
+ * Exports the object as an array.
+ *
+ * You can specify the key type of the array by passing one of the class
+ * type constants.
+ *
+ * @param string $keyType One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return an associative array containing the field names (as keys) and field values
+ */
+ public function toArray($keyType = BasePeer::TYPE_PHPNAME)
+ {
+ $keys = MessageApplicationPeer::getFieldNames($keyType);
+ $result = array(
+ $keys[0] => $this->getMsgappUid(),
+ $keys[1] => $this->getAppUid(),
+ $keys[2] => $this->getPrjUid(),
+ $keys[3] => $this->getEvnUidThrow(),
+ $keys[4] => $this->getEvnUidCatch(),
+ $keys[5] => $this->getMsgappVariables(),
+ $keys[6] => $this->getMsgappCorrelation(),
+ $keys[7] => $this->getMsgappThrowDate(),
+ $keys[8] => $this->getMsgappCatchDate(),
+ $keys[9] => $this->getMsgappStatus(),
+ );
+ return $result;
+ }
+
+ /**
+ * Sets a field from the object by name passed in as a string.
+ *
+ * @param string $name peer name
+ * @param mixed $value field value
+ * @param string $type The type of fieldname the $name is of:
+ * one of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return void
+ */
+ public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
+ {
+ $pos = MessageApplicationPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
+ return $this->setByPosition($pos, $value);
+ }
+
+ /**
+ * Sets a field from the object by Position as specified in the xml schema.
+ * Zero-based.
+ *
+ * @param int $pos position in xml schema
+ * @param mixed $value field value
+ * @return void
+ */
+ public function setByPosition($pos, $value)
+ {
+ switch($pos) {
+ case 0:
+ $this->setMsgappUid($value);
+ break;
+ case 1:
+ $this->setAppUid($value);
+ break;
+ case 2:
+ $this->setPrjUid($value);
+ break;
+ case 3:
+ $this->setEvnUidThrow($value);
+ break;
+ case 4:
+ $this->setEvnUidCatch($value);
+ break;
+ case 5:
+ $this->setMsgappVariables($value);
+ break;
+ case 6:
+ $this->setMsgappCorrelation($value);
+ break;
+ case 7:
+ $this->setMsgappThrowDate($value);
+ break;
+ case 8:
+ $this->setMsgappCatchDate($value);
+ break;
+ case 9:
+ $this->setMsgappStatus($value);
+ break;
+ } // switch()
+ }
+
+ /**
+ * Populates the object using an array.
+ *
+ * This is particularly useful when populating an object from one of the
+ * request arrays (e.g. $_POST). This method goes through the column
+ * names, checking to see whether a matching key exists in populated
+ * array. If so the setByName() method is called for that column.
+ *
+ * You can specify the key type of the array by additionally passing one
+ * of the class type constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME,
+ * TYPE_NUM. The default key type is the column's phpname (e.g. 'authorId')
+ *
+ * @param array $arr An array to populate the object from.
+ * @param string $keyType The type of keys the array uses.
+ * @return void
+ */
+ public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
+ {
+ $keys = MessageApplicationPeer::getFieldNames($keyType);
+
+ if (array_key_exists($keys[0], $arr)) {
+ $this->setMsgappUid($arr[$keys[0]]);
+ }
+
+ if (array_key_exists($keys[1], $arr)) {
+ $this->setAppUid($arr[$keys[1]]);
+ }
+
+ if (array_key_exists($keys[2], $arr)) {
+ $this->setPrjUid($arr[$keys[2]]);
+ }
+
+ if (array_key_exists($keys[3], $arr)) {
+ $this->setEvnUidThrow($arr[$keys[3]]);
+ }
+
+ if (array_key_exists($keys[4], $arr)) {
+ $this->setEvnUidCatch($arr[$keys[4]]);
+ }
+
+ if (array_key_exists($keys[5], $arr)) {
+ $this->setMsgappVariables($arr[$keys[5]]);
+ }
+
+ if (array_key_exists($keys[6], $arr)) {
+ $this->setMsgappCorrelation($arr[$keys[6]]);
+ }
+
+ if (array_key_exists($keys[7], $arr)) {
+ $this->setMsgappThrowDate($arr[$keys[7]]);
+ }
+
+ if (array_key_exists($keys[8], $arr)) {
+ $this->setMsgappCatchDate($arr[$keys[8]]);
+ }
+
+ if (array_key_exists($keys[9], $arr)) {
+ $this->setMsgappStatus($arr[$keys[9]]);
+ }
+
+ }
+
+ /**
+ * Build a Criteria object containing the values of all modified columns in this object.
+ *
+ * @return Criteria The Criteria object containing all modified values.
+ */
+ public function buildCriteria()
+ {
+ $criteria = new Criteria(MessageApplicationPeer::DATABASE_NAME);
+
+ if ($this->isColumnModified(MessageApplicationPeer::MSGAPP_UID)) {
+ $criteria->add(MessageApplicationPeer::MSGAPP_UID, $this->msgapp_uid);
+ }
+
+ if ($this->isColumnModified(MessageApplicationPeer::APP_UID)) {
+ $criteria->add(MessageApplicationPeer::APP_UID, $this->app_uid);
+ }
+
+ if ($this->isColumnModified(MessageApplicationPeer::PRJ_UID)) {
+ $criteria->add(MessageApplicationPeer::PRJ_UID, $this->prj_uid);
+ }
+
+ if ($this->isColumnModified(MessageApplicationPeer::EVN_UID_THROW)) {
+ $criteria->add(MessageApplicationPeer::EVN_UID_THROW, $this->evn_uid_throw);
+ }
+
+ if ($this->isColumnModified(MessageApplicationPeer::EVN_UID_CATCH)) {
+ $criteria->add(MessageApplicationPeer::EVN_UID_CATCH, $this->evn_uid_catch);
+ }
+
+ if ($this->isColumnModified(MessageApplicationPeer::MSGAPP_VARIABLES)) {
+ $criteria->add(MessageApplicationPeer::MSGAPP_VARIABLES, $this->msgapp_variables);
+ }
+
+ if ($this->isColumnModified(MessageApplicationPeer::MSGAPP_CORRELATION)) {
+ $criteria->add(MessageApplicationPeer::MSGAPP_CORRELATION, $this->msgapp_correlation);
+ }
+
+ if ($this->isColumnModified(MessageApplicationPeer::MSGAPP_THROW_DATE)) {
+ $criteria->add(MessageApplicationPeer::MSGAPP_THROW_DATE, $this->msgapp_throw_date);
+ }
+
+ if ($this->isColumnModified(MessageApplicationPeer::MSGAPP_CATCH_DATE)) {
+ $criteria->add(MessageApplicationPeer::MSGAPP_CATCH_DATE, $this->msgapp_catch_date);
+ }
+
+ if ($this->isColumnModified(MessageApplicationPeer::MSGAPP_STATUS)) {
+ $criteria->add(MessageApplicationPeer::MSGAPP_STATUS, $this->msgapp_status);
+ }
+
+
+ return $criteria;
+ }
+
+ /**
+ * Builds a Criteria object containing the primary key for this object.
+ *
+ * Unlike buildCriteria() this method includes the primary key values regardless
+ * of whether or not they have been modified.
+ *
+ * @return Criteria The Criteria object containing value(s) for primary key(s).
+ */
+ public function buildPkeyCriteria()
+ {
+ $criteria = new Criteria(MessageApplicationPeer::DATABASE_NAME);
+
+ $criteria->add(MessageApplicationPeer::MSGAPP_UID, $this->msgapp_uid);
+
+ return $criteria;
+ }
+
+ /**
+ * Returns the primary key for this object (row).
+ * @return string
+ */
+ public function getPrimaryKey()
+ {
+ return $this->getMsgappUid();
+ }
+
+ /**
+ * Generic method to set the primary key (msgapp_uid column).
+ *
+ * @param string $key Primary key.
+ * @return void
+ */
+ public function setPrimaryKey($key)
+ {
+ $this->setMsgappUid($key);
+ }
+
+ /**
+ * Sets contents of passed object to values from current object.
+ *
+ * If desired, this method can also make copies of all associated (fkey referrers)
+ * objects.
+ *
+ * @param object $copyObj An object of MessageApplication (or compatible) type.
+ * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
+ * @throws PropelException
+ */
+ public function copyInto($copyObj, $deepCopy = false)
+ {
+
+ $copyObj->setAppUid($this->app_uid);
+
+ $copyObj->setPrjUid($this->prj_uid);
+
+ $copyObj->setEvnUidThrow($this->evn_uid_throw);
+
+ $copyObj->setEvnUidCatch($this->evn_uid_catch);
+
+ $copyObj->setMsgappVariables($this->msgapp_variables);
+
+ $copyObj->setMsgappCorrelation($this->msgapp_correlation);
+
+ $copyObj->setMsgappThrowDate($this->msgapp_throw_date);
+
+ $copyObj->setMsgappCatchDate($this->msgapp_catch_date);
+
+ $copyObj->setMsgappStatus($this->msgapp_status);
+
+
+ $copyObj->setNew(true);
+
+ $copyObj->setMsgappUid(NULL); // this is a pkey column, so set to default value
+
+ }
+
+ /**
+ * Makes a copy of this object that will be inserted as a new row in table when saved.
+ * It creates a new object filling in the simple attributes, but skipping any primary
+ * keys that are defined for the table.
+ *
+ * If desired, this method can also make copies of all associated (fkey referrers)
+ * objects.
+ *
+ * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
+ * @return MessageApplication Clone of current object.
+ * @throws PropelException
+ */
+ public function copy($deepCopy = false)
+ {
+ // we use get_class(), because this might be a subclass
+ $clazz = get_class($this);
+ $copyObj = new $clazz();
+ $this->copyInto($copyObj, $deepCopy);
+ return $copyObj;
+ }
+
+ /**
+ * Returns a peer instance associated with this om.
+ *
+ * Since Peer classes are not to have any instance attributes, this method returns the
+ * same instance for all member of this class. The method could therefore
+ * be static, but this would prevent one from overriding the behavior.
+ *
+ * @return MessageApplicationPeer
+ */
+ public function getPeer()
+ {
+ if (self::$peer === null) {
+ self::$peer = new MessageApplicationPeer();
+ }
+ return self::$peer;
+ }
+}
+
diff --git a/workflow/engine/classes/model/om/BaseMessageApplicationPeer.php b/workflow/engine/classes/model/om/BaseMessageApplicationPeer.php
new file mode 100644
index 000000000..f33bad125
--- /dev/null
+++ b/workflow/engine/classes/model/om/BaseMessageApplicationPeer.php
@@ -0,0 +1,615 @@
+ array ('MsgappUid', 'AppUid', 'PrjUid', 'EvnUidThrow', 'EvnUidCatch', 'MsgappVariables', 'MsgappCorrelation', 'MsgappThrowDate', 'MsgappCatchDate', 'MsgappStatus', ),
+ BasePeer::TYPE_COLNAME => array (MessageApplicationPeer::MSGAPP_UID, MessageApplicationPeer::APP_UID, MessageApplicationPeer::PRJ_UID, MessageApplicationPeer::EVN_UID_THROW, MessageApplicationPeer::EVN_UID_CATCH, MessageApplicationPeer::MSGAPP_VARIABLES, MessageApplicationPeer::MSGAPP_CORRELATION, MessageApplicationPeer::MSGAPP_THROW_DATE, MessageApplicationPeer::MSGAPP_CATCH_DATE, MessageApplicationPeer::MSGAPP_STATUS, ),
+ BasePeer::TYPE_FIELDNAME => array ('MSGAPP_UID', 'APP_UID', 'PRJ_UID', 'EVN_UID_THROW', 'EVN_UID_CATCH', 'MSGAPP_VARIABLES', 'MSGAPP_CORRELATION', 'MSGAPP_THROW_DATE', 'MSGAPP_CATCH_DATE', 'MSGAPP_STATUS', ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
+ );
+
+ /**
+ * holds an array of keys for quick access to the fieldnames array
+ *
+ * first dimension keys are the type constants
+ * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
+ */
+ private static $fieldKeys = array (
+ BasePeer::TYPE_PHPNAME => array ('MsgappUid' => 0, 'AppUid' => 1, 'PrjUid' => 2, 'EvnUidThrow' => 3, 'EvnUidCatch' => 4, 'MsgappVariables' => 5, 'MsgappCorrelation' => 6, 'MsgappThrowDate' => 7, 'MsgappCatchDate' => 8, 'MsgappStatus' => 9, ),
+ BasePeer::TYPE_COLNAME => array (MessageApplicationPeer::MSGAPP_UID => 0, MessageApplicationPeer::APP_UID => 1, MessageApplicationPeer::PRJ_UID => 2, MessageApplicationPeer::EVN_UID_THROW => 3, MessageApplicationPeer::EVN_UID_CATCH => 4, MessageApplicationPeer::MSGAPP_VARIABLES => 5, MessageApplicationPeer::MSGAPP_CORRELATION => 6, MessageApplicationPeer::MSGAPP_THROW_DATE => 7, MessageApplicationPeer::MSGAPP_CATCH_DATE => 8, MessageApplicationPeer::MSGAPP_STATUS => 9, ),
+ BasePeer::TYPE_FIELDNAME => array ('MSGAPP_UID' => 0, 'APP_UID' => 1, 'PRJ_UID' => 2, 'EVN_UID_THROW' => 3, 'EVN_UID_CATCH' => 4, 'MSGAPP_VARIABLES' => 5, 'MSGAPP_CORRELATION' => 6, 'MSGAPP_THROW_DATE' => 7, 'MSGAPP_CATCH_DATE' => 8, 'MSGAPP_STATUS' => 9, ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
+ );
+
+ /**
+ * @return MapBuilder the map builder for this peer
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function getMapBuilder()
+ {
+ include_once 'classes/model/map/MessageApplicationMapBuilder.php';
+ return BasePeer::getMapBuilder('classes.model.map.MessageApplicationMapBuilder');
+ }
+ /**
+ * Gets a map (hash) of PHP names to DB column names.
+ *
+ * @return array The PHP to DB name map for this peer
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ * @deprecated Use the getFieldNames() and translateFieldName() methods instead of this.
+ */
+ public static function getPhpNameMap()
+ {
+ if (self::$phpNameMap === null) {
+ $map = MessageApplicationPeer::getTableMap();
+ $columns = $map->getColumns();
+ $nameMap = array();
+ foreach ($columns as $column) {
+ $nameMap[$column->getPhpName()] = $column->getColumnName();
+ }
+ self::$phpNameMap = $nameMap;
+ }
+ return self::$phpNameMap;
+ }
+ /**
+ * Translates a fieldname to another type
+ *
+ * @param string $name field name
+ * @param string $fromType One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @param string $toType One of the class type constants
+ * @return string translated name of the field.
+ */
+ static public function translateFieldName($name, $fromType, $toType)
+ {
+ $toNames = self::getFieldNames($toType);
+ $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;
+ if ($key === null) {
+ throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true));
+ }
+ return $toNames[$key];
+ }
+
+ /**
+ * Returns an array of of field names.
+ *
+ * @param string $type The type of fieldnames to return:
+ * One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return array A list of field names
+ */
+
+ static public function getFieldNames($type = BasePeer::TYPE_PHPNAME)
+ {
+ if (!array_key_exists($type, self::$fieldNames)) {
+ throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM. ' . $type . ' was given.');
+ }
+ return self::$fieldNames[$type];
+ }
+
+ /**
+ * Convenience method which changes table.column to alias.column.
+ *
+ * Using this method you can maintain SQL abstraction while using column aliases.
+ *
+ * $c->addAlias("alias1", TablePeer::TABLE_NAME);
+ * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
+ *
+ * @param string $alias The alias for the current table.
+ * @param string $column The column name for current table. (i.e. MessageApplicationPeer::COLUMN_NAME).
+ * @return string
+ */
+ public static function alias($alias, $column)
+ {
+ return str_replace(MessageApplicationPeer::TABLE_NAME.'.', $alias.'.', $column);
+ }
+
+ /**
+ * Add all the columns needed to create a new object.
+ *
+ * Note: any columns that were marked with lazyLoad="true" in the
+ * XML schema will not be added to the select list and only loaded
+ * on demand.
+ *
+ * @param criteria object containing the columns to add.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function addSelectColumns(Criteria $criteria)
+ {
+
+ $criteria->addSelectColumn(MessageApplicationPeer::MSGAPP_UID);
+
+ $criteria->addSelectColumn(MessageApplicationPeer::APP_UID);
+
+ $criteria->addSelectColumn(MessageApplicationPeer::PRJ_UID);
+
+ $criteria->addSelectColumn(MessageApplicationPeer::EVN_UID_THROW);
+
+ $criteria->addSelectColumn(MessageApplicationPeer::EVN_UID_CATCH);
+
+ $criteria->addSelectColumn(MessageApplicationPeer::MSGAPP_VARIABLES);
+
+ $criteria->addSelectColumn(MessageApplicationPeer::MSGAPP_CORRELATION);
+
+ $criteria->addSelectColumn(MessageApplicationPeer::MSGAPP_THROW_DATE);
+
+ $criteria->addSelectColumn(MessageApplicationPeer::MSGAPP_CATCH_DATE);
+
+ $criteria->addSelectColumn(MessageApplicationPeer::MSGAPP_STATUS);
+
+ }
+
+ const COUNT = 'COUNT(MESSAGE_APPLICATION.MSGAPP_UID)';
+ const COUNT_DISTINCT = 'COUNT(DISTINCT MESSAGE_APPLICATION.MSGAPP_UID)';
+
+ /**
+ * Returns the number of rows matching criteria.
+ *
+ * @param Criteria $criteria
+ * @param boolean $distinct Whether to select only distinct columns (You can also set DISTINCT modifier in Criteria).
+ * @param Connection $con
+ * @return int Number of matching rows.
+ */
+ public static function doCount(Criteria $criteria, $distinct = false, $con = null)
+ {
+ // we're going to modify criteria, so copy it first
+ $criteria = clone $criteria;
+
+ // clear out anything that might confuse the ORDER BY clause
+ $criteria->clearSelectColumns()->clearOrderByColumns();
+ if ($distinct || in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {
+ $criteria->addSelectColumn(MessageApplicationPeer::COUNT_DISTINCT);
+ } else {
+ $criteria->addSelectColumn(MessageApplicationPeer::COUNT);
+ }
+
+ // just in case we're grouping: add those columns to the select statement
+ foreach ($criteria->getGroupByColumns() as $column) {
+ $criteria->addSelectColumn($column);
+ }
+
+ $rs = MessageApplicationPeer::doSelectRS($criteria, $con);
+ if ($rs->next()) {
+ return $rs->getInt(1);
+ } else {
+ // no rows returned; we infer that means 0 matches.
+ return 0;
+ }
+ }
+ /**
+ * Method to select one object from the DB.
+ *
+ * @param Criteria $criteria object used to create the SELECT statement.
+ * @param Connection $con
+ * @return MessageApplication
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doSelectOne(Criteria $criteria, $con = null)
+ {
+ $critcopy = clone $criteria;
+ $critcopy->setLimit(1);
+ $objects = MessageApplicationPeer::doSelect($critcopy, $con);
+ if ($objects) {
+ return $objects[0];
+ }
+ return null;
+ }
+ /**
+ * Method to do selects.
+ *
+ * @param Criteria $criteria The Criteria object used to build the SELECT statement.
+ * @param Connection $con
+ * @return array Array of selected Objects
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doSelect(Criteria $criteria, $con = null)
+ {
+ return MessageApplicationPeer::populateObjects(MessageApplicationPeer::doSelectRS($criteria, $con));
+ }
+ /**
+ * Prepares the Criteria object and uses the parent doSelect()
+ * method to get a ResultSet.
+ *
+ * Use this method directly if you want to just get the resultset
+ * (instead of an array of objects).
+ *
+ * @param Criteria $criteria The Criteria object used to build the SELECT statement.
+ * @param Connection $con the connection to use
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ * @return ResultSet The resultset object with numerically-indexed fields.
+ * @see BasePeer::doSelect()
+ */
+ public static function doSelectRS(Criteria $criteria, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ if (!$criteria->getSelectColumns()) {
+ $criteria = clone $criteria;
+ MessageApplicationPeer::addSelectColumns($criteria);
+ }
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ // BasePeer returns a Creole ResultSet, set to return
+ // rows indexed numerically.
+ return BasePeer::doSelect($criteria, $con);
+ }
+ /**
+ * The returned array will contain objects of the default type or
+ * objects that inherit from the default.
+ *
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function populateObjects(ResultSet $rs)
+ {
+ $results = array();
+
+ // set the class once to avoid overhead in the loop
+ $cls = MessageApplicationPeer::getOMClass();
+ $cls = Propel::import($cls);
+ // populate the object(s)
+ while ($rs->next()) {
+
+ $obj = new $cls();
+ $obj->hydrate($rs);
+ $results[] = $obj;
+
+ }
+ return $results;
+ }
+ /**
+ * Returns the TableMap related to this peer.
+ * This method is not needed for general use but a specific application could have a need.
+ * @return TableMap
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function getTableMap()
+ {
+ return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);
+ }
+
+ /**
+ * The class that the Peer will make instances of.
+ *
+ * This uses a dot-path notation which is tranalted into a path
+ * relative to a location on the PHP include_path.
+ * (e.g. path.to.MyClass -> 'path/to/MyClass.php')
+ *
+ * @return string path.to.ClassName
+ */
+ public static function getOMClass()
+ {
+ return MessageApplicationPeer::CLASS_DEFAULT;
+ }
+
+ /**
+ * Method perform an INSERT on the database, given a MessageApplication or Criteria object.
+ *
+ * @param mixed $values Criteria or MessageApplication object containing data that is used to create the INSERT statement.
+ * @param Connection $con the connection to use
+ * @return mixed The new primary key.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doInsert($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+ } else {
+ $criteria = $values->buildCriteria(); // build Criteria from MessageApplication object
+ }
+
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table (I guess, conceivably)
+ $con->begin();
+ $pk = BasePeer::doInsert($criteria, $con);
+ $con->commit();
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+
+ return $pk;
+ }
+
+ /**
+ * Method perform an UPDATE on the database, given a MessageApplication or Criteria object.
+ *
+ * @param mixed $values Criteria or MessageApplication object containing data create the UPDATE statement.
+ * @param Connection $con The connection to use (specify Connection exert more control over transactions).
+ * @return int The number of affected rows (if supported by underlying database driver).
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doUpdate($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $selectCriteria = new Criteria(self::DATABASE_NAME);
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+
+ $comparison = $criteria->getComparison(MessageApplicationPeer::MSGAPP_UID);
+ $selectCriteria->add(MessageApplicationPeer::MSGAPP_UID, $criteria->remove(MessageApplicationPeer::MSGAPP_UID), $comparison);
+
+ } else {
+ $criteria = $values->buildCriteria(); // gets full criteria
+ $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
+ }
+
+ // set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ return BasePeer::doUpdate($selectCriteria, $criteria, $con);
+ }
+
+ /**
+ * Method to DELETE all rows from the MESSAGE_APPLICATION table.
+ *
+ * @return int The number of affected rows (if supported by underlying database driver).
+ */
+ public static function doDeleteAll($con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+ $affectedRows = 0; // initialize var to track total num of affected rows
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table or we could emulating ON DELETE CASCADE, etc.
+ $con->begin();
+ $affectedRows += BasePeer::doDeleteAll(MessageApplicationPeer::TABLE_NAME, $con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Method perform a DELETE on the database, given a MessageApplication or Criteria object OR a primary key value.
+ *
+ * @param mixed $values Criteria or MessageApplication object or primary key or array of primary keys
+ * which is used to create the DELETE statement
+ * @param Connection $con the connection to use
+ * @return int The number of affected rows (if supported by underlying database driver).
+ * This includes CASCADE-related rows
+ * if supported by native driver or if emulated using Propel.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doDelete($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(MessageApplicationPeer::DATABASE_NAME);
+ }
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+ } elseif ($values instanceof MessageApplication) {
+
+ $criteria = $values->buildPkeyCriteria();
+ } else {
+ // it must be the primary key
+ $criteria = new Criteria(self::DATABASE_NAME);
+ $criteria->add(MessageApplicationPeer::MSGAPP_UID, (array) $values, Criteria::IN);
+ }
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ $affectedRows = 0; // initialize var to track total num of affected rows
+
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table or we could emulating ON DELETE CASCADE, etc.
+ $con->begin();
+
+ $affectedRows += BasePeer::doDelete($criteria, $con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Validates all modified columns of given MessageApplication object.
+ * If parameter $columns is either a single column name or an array of column names
+ * than only those columns are validated.
+ *
+ * NOTICE: This does not apply to primary or foreign keys for now.
+ *
+ * @param MessageApplication $obj The object to validate.
+ * @param mixed $cols Column name or array of column names.
+ *
+ * @return mixed TRUE if all columns are valid or the error message of the first invalid column.
+ */
+ public static function doValidate(MessageApplication $obj, $cols = null)
+ {
+ $columns = array();
+
+ if ($cols) {
+ $dbMap = Propel::getDatabaseMap(MessageApplicationPeer::DATABASE_NAME);
+ $tableMap = $dbMap->getTable(MessageApplicationPeer::TABLE_NAME);
+
+ if (! is_array($cols)) {
+ $cols = array($cols);
+ }
+
+ foreach ($cols as $colName) {
+ if ($tableMap->containsColumn($colName)) {
+ $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
+ $columns[$colName] = $obj->$get();
+ }
+ }
+ } else {
+
+ if ($obj->isNew() || $obj->isColumnModified(MessageApplicationPeer::MSGAPP_STATUS))
+ $columns[MessageApplicationPeer::MSGAPP_STATUS] = $obj->getMsgappStatus();
+
+ }
+
+ return BasePeer::doValidate(MessageApplicationPeer::DATABASE_NAME, MessageApplicationPeer::TABLE_NAME, $columns);
+ }
+
+ /**
+ * Retrieve a single object by pkey.
+ *
+ * @param mixed $pk the primary key.
+ * @param Connection $con the connection to use
+ * @return MessageApplication
+ */
+ public static function retrieveByPK($pk, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $criteria = new Criteria(MessageApplicationPeer::DATABASE_NAME);
+
+ $criteria->add(MessageApplicationPeer::MSGAPP_UID, $pk);
+
+
+ $v = MessageApplicationPeer::doSelect($criteria, $con);
+
+ return !empty($v) > 0 ? $v[0] : null;
+ }
+
+ /**
+ * Retrieve multiple objects by pkey.
+ *
+ * @param array $pks List of primary keys
+ * @param Connection $con the connection to use
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function retrieveByPKs($pks, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $objs = null;
+ if (empty($pks)) {
+ $objs = array();
+ } else {
+ $criteria = new Criteria();
+ $criteria->add(MessageApplicationPeer::MSGAPP_UID, $pks, Criteria::IN);
+ $objs = MessageApplicationPeer::doSelect($criteria, $con);
+ }
+ return $objs;
+ }
+}
+
+
+// static code to register the map builder for this Peer with the main Propel class
+if (Propel::isInit()) {
+ // the MapBuilder classes register themselves with Propel during initialization
+ // so we need to load them here.
+ try {
+ BaseMessageApplicationPeer::getMapBuilder();
+ } catch (Exception $e) {
+ Propel::log('Could not initialize Peer: ' . $e->getMessage(), Propel::LOG_ERR);
+ }
+} else {
+ // even if Propel is not yet initialized, the map builder class can be registered
+ // now and then it will be loaded when Propel initializes.
+ require_once 'classes/model/map/MessageApplicationMapBuilder.php';
+ Propel::registerMapBuilder('classes.model.map.MessageApplicationMapBuilder');
+}
+
diff --git a/workflow/engine/classes/model/om/BaseMessageEventDefinition.php b/workflow/engine/classes/model/om/BaseMessageEventDefinition.php
new file mode 100644
index 000000000..49002de41
--- /dev/null
+++ b/workflow/engine/classes/model/om/BaseMessageEventDefinition.php
@@ -0,0 +1,858 @@
+msged_uid;
+ }
+
+ /**
+ * Get the [prj_uid] column value.
+ *
+ * @return string
+ */
+ public function getPrjUid()
+ {
+
+ return $this->prj_uid;
+ }
+
+ /**
+ * Get the [evn_uid] column value.
+ *
+ * @return string
+ */
+ public function getEvnUid()
+ {
+
+ return $this->evn_uid;
+ }
+
+ /**
+ * Get the [msgt_uid] column value.
+ *
+ * @return string
+ */
+ public function getMsgtUid()
+ {
+
+ return $this->msgt_uid;
+ }
+
+ /**
+ * Get the [msged_usr_uid] column value.
+ *
+ * @return string
+ */
+ public function getMsgedUsrUid()
+ {
+
+ return $this->msged_usr_uid;
+ }
+
+ /**
+ * Get the [msged_variables] column value.
+ *
+ * @return string
+ */
+ public function getMsgedVariables()
+ {
+
+ return $this->msged_variables;
+ }
+
+ /**
+ * Get the [msged_correlation] column value.
+ *
+ * @return string
+ */
+ public function getMsgedCorrelation()
+ {
+
+ return $this->msged_correlation;
+ }
+
+ /**
+ * Set the value of [msged_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setMsgedUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->msged_uid !== $v) {
+ $this->msged_uid = $v;
+ $this->modifiedColumns[] = MessageEventDefinitionPeer::MSGED_UID;
+ }
+
+ } // setMsgedUid()
+
+ /**
+ * Set the value of [prj_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setPrjUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->prj_uid !== $v) {
+ $this->prj_uid = $v;
+ $this->modifiedColumns[] = MessageEventDefinitionPeer::PRJ_UID;
+ }
+
+ } // setPrjUid()
+
+ /**
+ * Set the value of [evn_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setEvnUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->evn_uid !== $v) {
+ $this->evn_uid = $v;
+ $this->modifiedColumns[] = MessageEventDefinitionPeer::EVN_UID;
+ }
+
+ } // setEvnUid()
+
+ /**
+ * Set the value of [msgt_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setMsgtUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->msgt_uid !== $v || $v === '') {
+ $this->msgt_uid = $v;
+ $this->modifiedColumns[] = MessageEventDefinitionPeer::MSGT_UID;
+ }
+
+ } // setMsgtUid()
+
+ /**
+ * Set the value of [msged_usr_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setMsgedUsrUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->msged_usr_uid !== $v || $v === '') {
+ $this->msged_usr_uid = $v;
+ $this->modifiedColumns[] = MessageEventDefinitionPeer::MSGED_USR_UID;
+ }
+
+ } // setMsgedUsrUid()
+
+ /**
+ * Set the value of [msged_variables] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setMsgedVariables($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->msged_variables !== $v || $v === '') {
+ $this->msged_variables = $v;
+ $this->modifiedColumns[] = MessageEventDefinitionPeer::MSGED_VARIABLES;
+ }
+
+ } // setMsgedVariables()
+
+ /**
+ * Set the value of [msged_correlation] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setMsgedCorrelation($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->msged_correlation !== $v || $v === '') {
+ $this->msged_correlation = $v;
+ $this->modifiedColumns[] = MessageEventDefinitionPeer::MSGED_CORRELATION;
+ }
+
+ } // setMsgedCorrelation()
+
+ /**
+ * Hydrates (populates) the object variables with values from the database resultset.
+ *
+ * An offset (1-based "start column") is specified so that objects can be hydrated
+ * with a subset of the columns in the resultset rows. This is needed, for example,
+ * for results of JOIN queries where the resultset row includes columns from two or
+ * more tables.
+ *
+ * @param ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
+ * @param int $startcol 1-based offset column which indicates which restultset column to start with.
+ * @return int next starting column
+ * @throws PropelException - Any caught Exception will be rewrapped as a PropelException.
+ */
+ public function hydrate(ResultSet $rs, $startcol = 1)
+ {
+ try {
+
+ $this->msged_uid = $rs->getString($startcol + 0);
+
+ $this->prj_uid = $rs->getString($startcol + 1);
+
+ $this->evn_uid = $rs->getString($startcol + 2);
+
+ $this->msgt_uid = $rs->getString($startcol + 3);
+
+ $this->msged_usr_uid = $rs->getString($startcol + 4);
+
+ $this->msged_variables = $rs->getString($startcol + 5);
+
+ $this->msged_correlation = $rs->getString($startcol + 6);
+
+ $this->resetModified();
+
+ $this->setNew(false);
+
+ // FIXME - using NUM_COLUMNS may be clearer.
+ return $startcol + 7; // 7 = MessageEventDefinitionPeer::NUM_COLUMNS - MessageEventDefinitionPeer::NUM_LAZY_LOAD_COLUMNS).
+
+ } catch (Exception $e) {
+ throw new PropelException("Error populating MessageEventDefinition object", $e);
+ }
+ }
+
+ /**
+ * Removes this object from datastore and sets delete attribute.
+ *
+ * @param Connection $con
+ * @return void
+ * @throws PropelException
+ * @see BaseObject::setDeleted()
+ * @see BaseObject::isDeleted()
+ */
+ public function delete($con = null)
+ {
+ if ($this->isDeleted()) {
+ throw new PropelException("This object has already been deleted.");
+ }
+
+ if ($con === null) {
+ $con = Propel::getConnection(MessageEventDefinitionPeer::DATABASE_NAME);
+ }
+
+ try {
+ $con->begin();
+ MessageEventDefinitionPeer::doDelete($this, $con);
+ $this->setDeleted(true);
+ $con->commit();
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Stores the object in the database. If the object is new,
+ * it inserts it; otherwise an update is performed. This method
+ * wraps the doSave() worker method in a transaction.
+ *
+ * @param Connection $con
+ * @return int The number of rows affected by this insert/update
+ * @throws PropelException
+ * @see doSave()
+ */
+ public function save($con = null)
+ {
+ if ($this->isDeleted()) {
+ throw new PropelException("You cannot save an object that has been deleted.");
+ }
+
+ if ($con === null) {
+ $con = Propel::getConnection(MessageEventDefinitionPeer::DATABASE_NAME);
+ }
+
+ try {
+ $con->begin();
+ $affectedRows = $this->doSave($con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Stores the object in the database.
+ *
+ * If the object is new, it inserts it; otherwise an update is performed.
+ * All related objects are also updated in this method.
+ *
+ * @param Connection $con
+ * @return int The number of rows affected by this insert/update and any referring
+ * @throws PropelException
+ * @see save()
+ */
+ protected function doSave($con)
+ {
+ $affectedRows = 0; // initialize var to track total num of affected rows
+ if (!$this->alreadyInSave) {
+ $this->alreadyInSave = true;
+
+
+ // If this object has been modified, then save it to the database.
+ if ($this->isModified()) {
+ if ($this->isNew()) {
+ $pk = MessageEventDefinitionPeer::doInsert($this, $con);
+ $affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
+ // should always be true here (even though technically
+ // BasePeer::doInsert() can insert multiple rows).
+
+ $this->setNew(false);
+ } else {
+ $affectedRows += MessageEventDefinitionPeer::doUpdate($this, $con);
+ }
+ $this->resetModified(); // [HL] After being saved an object is no longer 'modified'
+ }
+
+ $this->alreadyInSave = false;
+ }
+ return $affectedRows;
+ } // doSave()
+
+ /**
+ * Array of ValidationFailed objects.
+ * @var array ValidationFailed[]
+ */
+ protected $validationFailures = array();
+
+ /**
+ * Gets any ValidationFailed objects that resulted from last call to validate().
+ *
+ *
+ * @return array ValidationFailed[]
+ * @see validate()
+ */
+ public function getValidationFailures()
+ {
+ return $this->validationFailures;
+ }
+
+ /**
+ * Validates the objects modified field values and all objects related to this table.
+ *
+ * If $columns is either a column name or an array of column names
+ * only those columns are validated.
+ *
+ * @param mixed $columns Column name or an array of column names.
+ * @return boolean Whether all columns pass validation.
+ * @see doValidate()
+ * @see getValidationFailures()
+ */
+ public function validate($columns = null)
+ {
+ $res = $this->doValidate($columns);
+ if ($res === true) {
+ $this->validationFailures = array();
+ return true;
+ } else {
+ $this->validationFailures = $res;
+ return false;
+ }
+ }
+
+ /**
+ * This function performs the validation work for complex object models.
+ *
+ * In addition to checking the current object, all related objects will
+ * also be validated. If all pass then true is returned; otherwise
+ * an aggreagated array of ValidationFailed objects will be returned.
+ *
+ * @param array $columns Array of column names to validate.
+ * @return mixed true if all validations pass;
+ array of ValidationFailed objects otherwise.
+ */
+ protected function doValidate($columns = null)
+ {
+ if (!$this->alreadyInValidation) {
+ $this->alreadyInValidation = true;
+ $retval = null;
+
+ $failureMap = array();
+
+
+ if (($retval = MessageEventDefinitionPeer::doValidate($this, $columns)) !== true) {
+ $failureMap = array_merge($failureMap, $retval);
+ }
+
+
+
+ $this->alreadyInValidation = false;
+ }
+
+ return (!empty($failureMap) ? $failureMap : true);
+ }
+
+ /**
+ * Retrieves a field from the object by name passed in as a string.
+ *
+ * @param string $name name
+ * @param string $type The type of fieldname the $name is of:
+ * one of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return mixed Value of field.
+ */
+ public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
+ {
+ $pos = MessageEventDefinitionPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
+ return $this->getByPosition($pos);
+ }
+
+ /**
+ * Retrieves a field from the object by Position as specified in the xml schema.
+ * Zero-based.
+ *
+ * @param int $pos position in xml schema
+ * @return mixed Value of field at $pos
+ */
+ public function getByPosition($pos)
+ {
+ switch($pos) {
+ case 0:
+ return $this->getMsgedUid();
+ break;
+ case 1:
+ return $this->getPrjUid();
+ break;
+ case 2:
+ return $this->getEvnUid();
+ break;
+ case 3:
+ return $this->getMsgtUid();
+ break;
+ case 4:
+ return $this->getMsgedUsrUid();
+ break;
+ case 5:
+ return $this->getMsgedVariables();
+ break;
+ case 6:
+ return $this->getMsgedCorrelation();
+ break;
+ default:
+ return null;
+ break;
+ } // switch()
+ }
+
+ /**
+ * Exports the object as an array.
+ *
+ * You can specify the key type of the array by passing one of the class
+ * type constants.
+ *
+ * @param string $keyType One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return an associative array containing the field names (as keys) and field values
+ */
+ public function toArray($keyType = BasePeer::TYPE_PHPNAME)
+ {
+ $keys = MessageEventDefinitionPeer::getFieldNames($keyType);
+ $result = array(
+ $keys[0] => $this->getMsgedUid(),
+ $keys[1] => $this->getPrjUid(),
+ $keys[2] => $this->getEvnUid(),
+ $keys[3] => $this->getMsgtUid(),
+ $keys[4] => $this->getMsgedUsrUid(),
+ $keys[5] => $this->getMsgedVariables(),
+ $keys[6] => $this->getMsgedCorrelation(),
+ );
+ return $result;
+ }
+
+ /**
+ * Sets a field from the object by name passed in as a string.
+ *
+ * @param string $name peer name
+ * @param mixed $value field value
+ * @param string $type The type of fieldname the $name is of:
+ * one of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return void
+ */
+ public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
+ {
+ $pos = MessageEventDefinitionPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
+ return $this->setByPosition($pos, $value);
+ }
+
+ /**
+ * Sets a field from the object by Position as specified in the xml schema.
+ * Zero-based.
+ *
+ * @param int $pos position in xml schema
+ * @param mixed $value field value
+ * @return void
+ */
+ public function setByPosition($pos, $value)
+ {
+ switch($pos) {
+ case 0:
+ $this->setMsgedUid($value);
+ break;
+ case 1:
+ $this->setPrjUid($value);
+ break;
+ case 2:
+ $this->setEvnUid($value);
+ break;
+ case 3:
+ $this->setMsgtUid($value);
+ break;
+ case 4:
+ $this->setMsgedUsrUid($value);
+ break;
+ case 5:
+ $this->setMsgedVariables($value);
+ break;
+ case 6:
+ $this->setMsgedCorrelation($value);
+ break;
+ } // switch()
+ }
+
+ /**
+ * Populates the object using an array.
+ *
+ * This is particularly useful when populating an object from one of the
+ * request arrays (e.g. $_POST). This method goes through the column
+ * names, checking to see whether a matching key exists in populated
+ * array. If so the setByName() method is called for that column.
+ *
+ * You can specify the key type of the array by additionally passing one
+ * of the class type constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME,
+ * TYPE_NUM. The default key type is the column's phpname (e.g. 'authorId')
+ *
+ * @param array $arr An array to populate the object from.
+ * @param string $keyType The type of keys the array uses.
+ * @return void
+ */
+ public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
+ {
+ $keys = MessageEventDefinitionPeer::getFieldNames($keyType);
+
+ if (array_key_exists($keys[0], $arr)) {
+ $this->setMsgedUid($arr[$keys[0]]);
+ }
+
+ if (array_key_exists($keys[1], $arr)) {
+ $this->setPrjUid($arr[$keys[1]]);
+ }
+
+ if (array_key_exists($keys[2], $arr)) {
+ $this->setEvnUid($arr[$keys[2]]);
+ }
+
+ if (array_key_exists($keys[3], $arr)) {
+ $this->setMsgtUid($arr[$keys[3]]);
+ }
+
+ if (array_key_exists($keys[4], $arr)) {
+ $this->setMsgedUsrUid($arr[$keys[4]]);
+ }
+
+ if (array_key_exists($keys[5], $arr)) {
+ $this->setMsgedVariables($arr[$keys[5]]);
+ }
+
+ if (array_key_exists($keys[6], $arr)) {
+ $this->setMsgedCorrelation($arr[$keys[6]]);
+ }
+
+ }
+
+ /**
+ * Build a Criteria object containing the values of all modified columns in this object.
+ *
+ * @return Criteria The Criteria object containing all modified values.
+ */
+ public function buildCriteria()
+ {
+ $criteria = new Criteria(MessageEventDefinitionPeer::DATABASE_NAME);
+
+ if ($this->isColumnModified(MessageEventDefinitionPeer::MSGED_UID)) {
+ $criteria->add(MessageEventDefinitionPeer::MSGED_UID, $this->msged_uid);
+ }
+
+ if ($this->isColumnModified(MessageEventDefinitionPeer::PRJ_UID)) {
+ $criteria->add(MessageEventDefinitionPeer::PRJ_UID, $this->prj_uid);
+ }
+
+ if ($this->isColumnModified(MessageEventDefinitionPeer::EVN_UID)) {
+ $criteria->add(MessageEventDefinitionPeer::EVN_UID, $this->evn_uid);
+ }
+
+ if ($this->isColumnModified(MessageEventDefinitionPeer::MSGT_UID)) {
+ $criteria->add(MessageEventDefinitionPeer::MSGT_UID, $this->msgt_uid);
+ }
+
+ if ($this->isColumnModified(MessageEventDefinitionPeer::MSGED_USR_UID)) {
+ $criteria->add(MessageEventDefinitionPeer::MSGED_USR_UID, $this->msged_usr_uid);
+ }
+
+ if ($this->isColumnModified(MessageEventDefinitionPeer::MSGED_VARIABLES)) {
+ $criteria->add(MessageEventDefinitionPeer::MSGED_VARIABLES, $this->msged_variables);
+ }
+
+ if ($this->isColumnModified(MessageEventDefinitionPeer::MSGED_CORRELATION)) {
+ $criteria->add(MessageEventDefinitionPeer::MSGED_CORRELATION, $this->msged_correlation);
+ }
+
+
+ return $criteria;
+ }
+
+ /**
+ * Builds a Criteria object containing the primary key for this object.
+ *
+ * Unlike buildCriteria() this method includes the primary key values regardless
+ * of whether or not they have been modified.
+ *
+ * @return Criteria The Criteria object containing value(s) for primary key(s).
+ */
+ public function buildPkeyCriteria()
+ {
+ $criteria = new Criteria(MessageEventDefinitionPeer::DATABASE_NAME);
+
+ $criteria->add(MessageEventDefinitionPeer::MSGED_UID, $this->msged_uid);
+
+ return $criteria;
+ }
+
+ /**
+ * Returns the primary key for this object (row).
+ * @return string
+ */
+ public function getPrimaryKey()
+ {
+ return $this->getMsgedUid();
+ }
+
+ /**
+ * Generic method to set the primary key (msged_uid column).
+ *
+ * @param string $key Primary key.
+ * @return void
+ */
+ public function setPrimaryKey($key)
+ {
+ $this->setMsgedUid($key);
+ }
+
+ /**
+ * Sets contents of passed object to values from current object.
+ *
+ * If desired, this method can also make copies of all associated (fkey referrers)
+ * objects.
+ *
+ * @param object $copyObj An object of MessageEventDefinition (or compatible) type.
+ * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
+ * @throws PropelException
+ */
+ public function copyInto($copyObj, $deepCopy = false)
+ {
+
+ $copyObj->setPrjUid($this->prj_uid);
+
+ $copyObj->setEvnUid($this->evn_uid);
+
+ $copyObj->setMsgtUid($this->msgt_uid);
+
+ $copyObj->setMsgedUsrUid($this->msged_usr_uid);
+
+ $copyObj->setMsgedVariables($this->msged_variables);
+
+ $copyObj->setMsgedCorrelation($this->msged_correlation);
+
+
+ $copyObj->setNew(true);
+
+ $copyObj->setMsgedUid(NULL); // this is a pkey column, so set to default value
+
+ }
+
+ /**
+ * Makes a copy of this object that will be inserted as a new row in table when saved.
+ * It creates a new object filling in the simple attributes, but skipping any primary
+ * keys that are defined for the table.
+ *
+ * If desired, this method can also make copies of all associated (fkey referrers)
+ * objects.
+ *
+ * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
+ * @return MessageEventDefinition Clone of current object.
+ * @throws PropelException
+ */
+ public function copy($deepCopy = false)
+ {
+ // we use get_class(), because this might be a subclass
+ $clazz = get_class($this);
+ $copyObj = new $clazz();
+ $this->copyInto($copyObj, $deepCopy);
+ return $copyObj;
+ }
+
+ /**
+ * Returns a peer instance associated with this om.
+ *
+ * Since Peer classes are not to have any instance attributes, this method returns the
+ * same instance for all member of this class. The method could therefore
+ * be static, but this would prevent one from overriding the behavior.
+ *
+ * @return MessageEventDefinitionPeer
+ */
+ public function getPeer()
+ {
+ if (self::$peer === null) {
+ self::$peer = new MessageEventDefinitionPeer();
+ }
+ return self::$peer;
+ }
+}
+
diff --git a/workflow/engine/classes/model/om/BaseMessageEventDefinitionPeer.php b/workflow/engine/classes/model/om/BaseMessageEventDefinitionPeer.php
new file mode 100644
index 000000000..98db053f4
--- /dev/null
+++ b/workflow/engine/classes/model/om/BaseMessageEventDefinitionPeer.php
@@ -0,0 +1,597 @@
+ array ('MsgedUid', 'PrjUid', 'EvnUid', 'MsgtUid', 'MsgedUsrUid', 'MsgedVariables', 'MsgedCorrelation', ),
+ BasePeer::TYPE_COLNAME => array (MessageEventDefinitionPeer::MSGED_UID, MessageEventDefinitionPeer::PRJ_UID, MessageEventDefinitionPeer::EVN_UID, MessageEventDefinitionPeer::MSGT_UID, MessageEventDefinitionPeer::MSGED_USR_UID, MessageEventDefinitionPeer::MSGED_VARIABLES, MessageEventDefinitionPeer::MSGED_CORRELATION, ),
+ BasePeer::TYPE_FIELDNAME => array ('MSGED_UID', 'PRJ_UID', 'EVN_UID', 'MSGT_UID', 'MSGED_USR_UID', 'MSGED_VARIABLES', 'MSGED_CORRELATION', ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, )
+ );
+
+ /**
+ * holds an array of keys for quick access to the fieldnames array
+ *
+ * first dimension keys are the type constants
+ * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
+ */
+ private static $fieldKeys = array (
+ BasePeer::TYPE_PHPNAME => array ('MsgedUid' => 0, 'PrjUid' => 1, 'EvnUid' => 2, 'MsgtUid' => 3, 'MsgedUsrUid' => 4, 'MsgedVariables' => 5, 'MsgedCorrelation' => 6, ),
+ BasePeer::TYPE_COLNAME => array (MessageEventDefinitionPeer::MSGED_UID => 0, MessageEventDefinitionPeer::PRJ_UID => 1, MessageEventDefinitionPeer::EVN_UID => 2, MessageEventDefinitionPeer::MSGT_UID => 3, MessageEventDefinitionPeer::MSGED_USR_UID => 4, MessageEventDefinitionPeer::MSGED_VARIABLES => 5, MessageEventDefinitionPeer::MSGED_CORRELATION => 6, ),
+ BasePeer::TYPE_FIELDNAME => array ('MSGED_UID' => 0, 'PRJ_UID' => 1, 'EVN_UID' => 2, 'MSGT_UID' => 3, 'MSGED_USR_UID' => 4, 'MSGED_VARIABLES' => 5, 'MSGED_CORRELATION' => 6, ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, )
+ );
+
+ /**
+ * @return MapBuilder the map builder for this peer
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function getMapBuilder()
+ {
+ include_once 'classes/model/map/MessageEventDefinitionMapBuilder.php';
+ return BasePeer::getMapBuilder('classes.model.map.MessageEventDefinitionMapBuilder');
+ }
+ /**
+ * Gets a map (hash) of PHP names to DB column names.
+ *
+ * @return array The PHP to DB name map for this peer
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ * @deprecated Use the getFieldNames() and translateFieldName() methods instead of this.
+ */
+ public static function getPhpNameMap()
+ {
+ if (self::$phpNameMap === null) {
+ $map = MessageEventDefinitionPeer::getTableMap();
+ $columns = $map->getColumns();
+ $nameMap = array();
+ foreach ($columns as $column) {
+ $nameMap[$column->getPhpName()] = $column->getColumnName();
+ }
+ self::$phpNameMap = $nameMap;
+ }
+ return self::$phpNameMap;
+ }
+ /**
+ * Translates a fieldname to another type
+ *
+ * @param string $name field name
+ * @param string $fromType One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @param string $toType One of the class type constants
+ * @return string translated name of the field.
+ */
+ static public function translateFieldName($name, $fromType, $toType)
+ {
+ $toNames = self::getFieldNames($toType);
+ $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;
+ if ($key === null) {
+ throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true));
+ }
+ return $toNames[$key];
+ }
+
+ /**
+ * Returns an array of of field names.
+ *
+ * @param string $type The type of fieldnames to return:
+ * One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return array A list of field names
+ */
+
+ static public function getFieldNames($type = BasePeer::TYPE_PHPNAME)
+ {
+ if (!array_key_exists($type, self::$fieldNames)) {
+ throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM. ' . $type . ' was given.');
+ }
+ return self::$fieldNames[$type];
+ }
+
+ /**
+ * Convenience method which changes table.column to alias.column.
+ *
+ * Using this method you can maintain SQL abstraction while using column aliases.
+ *
+ * $c->addAlias("alias1", TablePeer::TABLE_NAME);
+ * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
+ *
+ * @param string $alias The alias for the current table.
+ * @param string $column The column name for current table. (i.e. MessageEventDefinitionPeer::COLUMN_NAME).
+ * @return string
+ */
+ public static function alias($alias, $column)
+ {
+ return str_replace(MessageEventDefinitionPeer::TABLE_NAME.'.', $alias.'.', $column);
+ }
+
+ /**
+ * Add all the columns needed to create a new object.
+ *
+ * Note: any columns that were marked with lazyLoad="true" in the
+ * XML schema will not be added to the select list and only loaded
+ * on demand.
+ *
+ * @param criteria object containing the columns to add.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function addSelectColumns(Criteria $criteria)
+ {
+
+ $criteria->addSelectColumn(MessageEventDefinitionPeer::MSGED_UID);
+
+ $criteria->addSelectColumn(MessageEventDefinitionPeer::PRJ_UID);
+
+ $criteria->addSelectColumn(MessageEventDefinitionPeer::EVN_UID);
+
+ $criteria->addSelectColumn(MessageEventDefinitionPeer::MSGT_UID);
+
+ $criteria->addSelectColumn(MessageEventDefinitionPeer::MSGED_USR_UID);
+
+ $criteria->addSelectColumn(MessageEventDefinitionPeer::MSGED_VARIABLES);
+
+ $criteria->addSelectColumn(MessageEventDefinitionPeer::MSGED_CORRELATION);
+
+ }
+
+ const COUNT = 'COUNT(MESSAGE_EVENT_DEFINITION.MSGED_UID)';
+ const COUNT_DISTINCT = 'COUNT(DISTINCT MESSAGE_EVENT_DEFINITION.MSGED_UID)';
+
+ /**
+ * Returns the number of rows matching criteria.
+ *
+ * @param Criteria $criteria
+ * @param boolean $distinct Whether to select only distinct columns (You can also set DISTINCT modifier in Criteria).
+ * @param Connection $con
+ * @return int Number of matching rows.
+ */
+ public static function doCount(Criteria $criteria, $distinct = false, $con = null)
+ {
+ // we're going to modify criteria, so copy it first
+ $criteria = clone $criteria;
+
+ // clear out anything that might confuse the ORDER BY clause
+ $criteria->clearSelectColumns()->clearOrderByColumns();
+ if ($distinct || in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {
+ $criteria->addSelectColumn(MessageEventDefinitionPeer::COUNT_DISTINCT);
+ } else {
+ $criteria->addSelectColumn(MessageEventDefinitionPeer::COUNT);
+ }
+
+ // just in case we're grouping: add those columns to the select statement
+ foreach ($criteria->getGroupByColumns() as $column) {
+ $criteria->addSelectColumn($column);
+ }
+
+ $rs = MessageEventDefinitionPeer::doSelectRS($criteria, $con);
+ if ($rs->next()) {
+ return $rs->getInt(1);
+ } else {
+ // no rows returned; we infer that means 0 matches.
+ return 0;
+ }
+ }
+ /**
+ * Method to select one object from the DB.
+ *
+ * @param Criteria $criteria object used to create the SELECT statement.
+ * @param Connection $con
+ * @return MessageEventDefinition
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doSelectOne(Criteria $criteria, $con = null)
+ {
+ $critcopy = clone $criteria;
+ $critcopy->setLimit(1);
+ $objects = MessageEventDefinitionPeer::doSelect($critcopy, $con);
+ if ($objects) {
+ return $objects[0];
+ }
+ return null;
+ }
+ /**
+ * Method to do selects.
+ *
+ * @param Criteria $criteria The Criteria object used to build the SELECT statement.
+ * @param Connection $con
+ * @return array Array of selected Objects
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doSelect(Criteria $criteria, $con = null)
+ {
+ return MessageEventDefinitionPeer::populateObjects(MessageEventDefinitionPeer::doSelectRS($criteria, $con));
+ }
+ /**
+ * Prepares the Criteria object and uses the parent doSelect()
+ * method to get a ResultSet.
+ *
+ * Use this method directly if you want to just get the resultset
+ * (instead of an array of objects).
+ *
+ * @param Criteria $criteria The Criteria object used to build the SELECT statement.
+ * @param Connection $con the connection to use
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ * @return ResultSet The resultset object with numerically-indexed fields.
+ * @see BasePeer::doSelect()
+ */
+ public static function doSelectRS(Criteria $criteria, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ if (!$criteria->getSelectColumns()) {
+ $criteria = clone $criteria;
+ MessageEventDefinitionPeer::addSelectColumns($criteria);
+ }
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ // BasePeer returns a Creole ResultSet, set to return
+ // rows indexed numerically.
+ return BasePeer::doSelect($criteria, $con);
+ }
+ /**
+ * The returned array will contain objects of the default type or
+ * objects that inherit from the default.
+ *
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function populateObjects(ResultSet $rs)
+ {
+ $results = array();
+
+ // set the class once to avoid overhead in the loop
+ $cls = MessageEventDefinitionPeer::getOMClass();
+ $cls = Propel::import($cls);
+ // populate the object(s)
+ while ($rs->next()) {
+
+ $obj = new $cls();
+ $obj->hydrate($rs);
+ $results[] = $obj;
+
+ }
+ return $results;
+ }
+ /**
+ * Returns the TableMap related to this peer.
+ * This method is not needed for general use but a specific application could have a need.
+ * @return TableMap
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function getTableMap()
+ {
+ return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);
+ }
+
+ /**
+ * The class that the Peer will make instances of.
+ *
+ * This uses a dot-path notation which is tranalted into a path
+ * relative to a location on the PHP include_path.
+ * (e.g. path.to.MyClass -> 'path/to/MyClass.php')
+ *
+ * @return string path.to.ClassName
+ */
+ public static function getOMClass()
+ {
+ return MessageEventDefinitionPeer::CLASS_DEFAULT;
+ }
+
+ /**
+ * Method perform an INSERT on the database, given a MessageEventDefinition or Criteria object.
+ *
+ * @param mixed $values Criteria or MessageEventDefinition object containing data that is used to create the INSERT statement.
+ * @param Connection $con the connection to use
+ * @return mixed The new primary key.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doInsert($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+ } else {
+ $criteria = $values->buildCriteria(); // build Criteria from MessageEventDefinition object
+ }
+
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table (I guess, conceivably)
+ $con->begin();
+ $pk = BasePeer::doInsert($criteria, $con);
+ $con->commit();
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+
+ return $pk;
+ }
+
+ /**
+ * Method perform an UPDATE on the database, given a MessageEventDefinition or Criteria object.
+ *
+ * @param mixed $values Criteria or MessageEventDefinition object containing data create the UPDATE statement.
+ * @param Connection $con The connection to use (specify Connection exert more control over transactions).
+ * @return int The number of affected rows (if supported by underlying database driver).
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doUpdate($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $selectCriteria = new Criteria(self::DATABASE_NAME);
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+
+ $comparison = $criteria->getComparison(MessageEventDefinitionPeer::MSGED_UID);
+ $selectCriteria->add(MessageEventDefinitionPeer::MSGED_UID, $criteria->remove(MessageEventDefinitionPeer::MSGED_UID), $comparison);
+
+ } else {
+ $criteria = $values->buildCriteria(); // gets full criteria
+ $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
+ }
+
+ // set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ return BasePeer::doUpdate($selectCriteria, $criteria, $con);
+ }
+
+ /**
+ * Method to DELETE all rows from the MESSAGE_EVENT_DEFINITION table.
+ *
+ * @return int The number of affected rows (if supported by underlying database driver).
+ */
+ public static function doDeleteAll($con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+ $affectedRows = 0; // initialize var to track total num of affected rows
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table or we could emulating ON DELETE CASCADE, etc.
+ $con->begin();
+ $affectedRows += BasePeer::doDeleteAll(MessageEventDefinitionPeer::TABLE_NAME, $con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Method perform a DELETE on the database, given a MessageEventDefinition or Criteria object OR a primary key value.
+ *
+ * @param mixed $values Criteria or MessageEventDefinition object or primary key or array of primary keys
+ * which is used to create the DELETE statement
+ * @param Connection $con the connection to use
+ * @return int The number of affected rows (if supported by underlying database driver).
+ * This includes CASCADE-related rows
+ * if supported by native driver or if emulated using Propel.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doDelete($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(MessageEventDefinitionPeer::DATABASE_NAME);
+ }
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+ } elseif ($values instanceof MessageEventDefinition) {
+
+ $criteria = $values->buildPkeyCriteria();
+ } else {
+ // it must be the primary key
+ $criteria = new Criteria(self::DATABASE_NAME);
+ $criteria->add(MessageEventDefinitionPeer::MSGED_UID, (array) $values, Criteria::IN);
+ }
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ $affectedRows = 0; // initialize var to track total num of affected rows
+
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table or we could emulating ON DELETE CASCADE, etc.
+ $con->begin();
+
+ $affectedRows += BasePeer::doDelete($criteria, $con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Validates all modified columns of given MessageEventDefinition object.
+ * If parameter $columns is either a single column name or an array of column names
+ * than only those columns are validated.
+ *
+ * NOTICE: This does not apply to primary or foreign keys for now.
+ *
+ * @param MessageEventDefinition $obj The object to validate.
+ * @param mixed $cols Column name or array of column names.
+ *
+ * @return mixed TRUE if all columns are valid or the error message of the first invalid column.
+ */
+ public static function doValidate(MessageEventDefinition $obj, $cols = null)
+ {
+ $columns = array();
+
+ if ($cols) {
+ $dbMap = Propel::getDatabaseMap(MessageEventDefinitionPeer::DATABASE_NAME);
+ $tableMap = $dbMap->getTable(MessageEventDefinitionPeer::TABLE_NAME);
+
+ if (! is_array($cols)) {
+ $cols = array($cols);
+ }
+
+ foreach ($cols as $colName) {
+ if ($tableMap->containsColumn($colName)) {
+ $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
+ $columns[$colName] = $obj->$get();
+ }
+ }
+ } else {
+
+ }
+
+ return BasePeer::doValidate(MessageEventDefinitionPeer::DATABASE_NAME, MessageEventDefinitionPeer::TABLE_NAME, $columns);
+ }
+
+ /**
+ * Retrieve a single object by pkey.
+ *
+ * @param mixed $pk the primary key.
+ * @param Connection $con the connection to use
+ * @return MessageEventDefinition
+ */
+ public static function retrieveByPK($pk, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $criteria = new Criteria(MessageEventDefinitionPeer::DATABASE_NAME);
+
+ $criteria->add(MessageEventDefinitionPeer::MSGED_UID, $pk);
+
+
+ $v = MessageEventDefinitionPeer::doSelect($criteria, $con);
+
+ return !empty($v) > 0 ? $v[0] : null;
+ }
+
+ /**
+ * Retrieve multiple objects by pkey.
+ *
+ * @param array $pks List of primary keys
+ * @param Connection $con the connection to use
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function retrieveByPKs($pks, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $objs = null;
+ if (empty($pks)) {
+ $objs = array();
+ } else {
+ $criteria = new Criteria();
+ $criteria->add(MessageEventDefinitionPeer::MSGED_UID, $pks, Criteria::IN);
+ $objs = MessageEventDefinitionPeer::doSelect($criteria, $con);
+ }
+ return $objs;
+ }
+}
+
+
+// static code to register the map builder for this Peer with the main Propel class
+if (Propel::isInit()) {
+ // the MapBuilder classes register themselves with Propel during initialization
+ // so we need to load them here.
+ try {
+ BaseMessageEventDefinitionPeer::getMapBuilder();
+ } catch (Exception $e) {
+ Propel::log('Could not initialize Peer: ' . $e->getMessage(), Propel::LOG_ERR);
+ }
+} else {
+ // even if Propel is not yet initialized, the map builder class can be registered
+ // now and then it will be loaded when Propel initializes.
+ require_once 'classes/model/map/MessageEventDefinitionMapBuilder.php';
+ Propel::registerMapBuilder('classes.model.map.MessageEventDefinitionMapBuilder');
+}
+
diff --git a/workflow/engine/classes/model/om/BaseMessageEventRelation.php b/workflow/engine/classes/model/om/BaseMessageEventRelation.php
new file mode 100644
index 000000000..90f850e22
--- /dev/null
+++ b/workflow/engine/classes/model/om/BaseMessageEventRelation.php
@@ -0,0 +1,684 @@
+msger_uid;
+ }
+
+ /**
+ * Get the [prj_uid] column value.
+ *
+ * @return string
+ */
+ public function getPrjUid()
+ {
+
+ return $this->prj_uid;
+ }
+
+ /**
+ * Get the [evn_uid_throw] column value.
+ *
+ * @return string
+ */
+ public function getEvnUidThrow()
+ {
+
+ return $this->evn_uid_throw;
+ }
+
+ /**
+ * Get the [evn_uid_catch] column value.
+ *
+ * @return string
+ */
+ public function getEvnUidCatch()
+ {
+
+ return $this->evn_uid_catch;
+ }
+
+ /**
+ * Set the value of [msger_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setMsgerUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->msger_uid !== $v) {
+ $this->msger_uid = $v;
+ $this->modifiedColumns[] = MessageEventRelationPeer::MSGER_UID;
+ }
+
+ } // setMsgerUid()
+
+ /**
+ * Set the value of [prj_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setPrjUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->prj_uid !== $v) {
+ $this->prj_uid = $v;
+ $this->modifiedColumns[] = MessageEventRelationPeer::PRJ_UID;
+ }
+
+ } // setPrjUid()
+
+ /**
+ * Set the value of [evn_uid_throw] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setEvnUidThrow($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->evn_uid_throw !== $v) {
+ $this->evn_uid_throw = $v;
+ $this->modifiedColumns[] = MessageEventRelationPeer::EVN_UID_THROW;
+ }
+
+ } // setEvnUidThrow()
+
+ /**
+ * Set the value of [evn_uid_catch] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setEvnUidCatch($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->evn_uid_catch !== $v) {
+ $this->evn_uid_catch = $v;
+ $this->modifiedColumns[] = MessageEventRelationPeer::EVN_UID_CATCH;
+ }
+
+ } // setEvnUidCatch()
+
+ /**
+ * Hydrates (populates) the object variables with values from the database resultset.
+ *
+ * An offset (1-based "start column") is specified so that objects can be hydrated
+ * with a subset of the columns in the resultset rows. This is needed, for example,
+ * for results of JOIN queries where the resultset row includes columns from two or
+ * more tables.
+ *
+ * @param ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
+ * @param int $startcol 1-based offset column which indicates which restultset column to start with.
+ * @return int next starting column
+ * @throws PropelException - Any caught Exception will be rewrapped as a PropelException.
+ */
+ public function hydrate(ResultSet $rs, $startcol = 1)
+ {
+ try {
+
+ $this->msger_uid = $rs->getString($startcol + 0);
+
+ $this->prj_uid = $rs->getString($startcol + 1);
+
+ $this->evn_uid_throw = $rs->getString($startcol + 2);
+
+ $this->evn_uid_catch = $rs->getString($startcol + 3);
+
+ $this->resetModified();
+
+ $this->setNew(false);
+
+ // FIXME - using NUM_COLUMNS may be clearer.
+ return $startcol + 4; // 4 = MessageEventRelationPeer::NUM_COLUMNS - MessageEventRelationPeer::NUM_LAZY_LOAD_COLUMNS).
+
+ } catch (Exception $e) {
+ throw new PropelException("Error populating MessageEventRelation object", $e);
+ }
+ }
+
+ /**
+ * Removes this object from datastore and sets delete attribute.
+ *
+ * @param Connection $con
+ * @return void
+ * @throws PropelException
+ * @see BaseObject::setDeleted()
+ * @see BaseObject::isDeleted()
+ */
+ public function delete($con = null)
+ {
+ if ($this->isDeleted()) {
+ throw new PropelException("This object has already been deleted.");
+ }
+
+ if ($con === null) {
+ $con = Propel::getConnection(MessageEventRelationPeer::DATABASE_NAME);
+ }
+
+ try {
+ $con->begin();
+ MessageEventRelationPeer::doDelete($this, $con);
+ $this->setDeleted(true);
+ $con->commit();
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Stores the object in the database. If the object is new,
+ * it inserts it; otherwise an update is performed. This method
+ * wraps the doSave() worker method in a transaction.
+ *
+ * @param Connection $con
+ * @return int The number of rows affected by this insert/update
+ * @throws PropelException
+ * @see doSave()
+ */
+ public function save($con = null)
+ {
+ if ($this->isDeleted()) {
+ throw new PropelException("You cannot save an object that has been deleted.");
+ }
+
+ if ($con === null) {
+ $con = Propel::getConnection(MessageEventRelationPeer::DATABASE_NAME);
+ }
+
+ try {
+ $con->begin();
+ $affectedRows = $this->doSave($con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Stores the object in the database.
+ *
+ * If the object is new, it inserts it; otherwise an update is performed.
+ * All related objects are also updated in this method.
+ *
+ * @param Connection $con
+ * @return int The number of rows affected by this insert/update and any referring
+ * @throws PropelException
+ * @see save()
+ */
+ protected function doSave($con)
+ {
+ $affectedRows = 0; // initialize var to track total num of affected rows
+ if (!$this->alreadyInSave) {
+ $this->alreadyInSave = true;
+
+
+ // If this object has been modified, then save it to the database.
+ if ($this->isModified()) {
+ if ($this->isNew()) {
+ $pk = MessageEventRelationPeer::doInsert($this, $con);
+ $affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
+ // should always be true here (even though technically
+ // BasePeer::doInsert() can insert multiple rows).
+
+ $this->setNew(false);
+ } else {
+ $affectedRows += MessageEventRelationPeer::doUpdate($this, $con);
+ }
+ $this->resetModified(); // [HL] After being saved an object is no longer 'modified'
+ }
+
+ $this->alreadyInSave = false;
+ }
+ return $affectedRows;
+ } // doSave()
+
+ /**
+ * Array of ValidationFailed objects.
+ * @var array ValidationFailed[]
+ */
+ protected $validationFailures = array();
+
+ /**
+ * Gets any ValidationFailed objects that resulted from last call to validate().
+ *
+ *
+ * @return array ValidationFailed[]
+ * @see validate()
+ */
+ public function getValidationFailures()
+ {
+ return $this->validationFailures;
+ }
+
+ /**
+ * Validates the objects modified field values and all objects related to this table.
+ *
+ * If $columns is either a column name or an array of column names
+ * only those columns are validated.
+ *
+ * @param mixed $columns Column name or an array of column names.
+ * @return boolean Whether all columns pass validation.
+ * @see doValidate()
+ * @see getValidationFailures()
+ */
+ public function validate($columns = null)
+ {
+ $res = $this->doValidate($columns);
+ if ($res === true) {
+ $this->validationFailures = array();
+ return true;
+ } else {
+ $this->validationFailures = $res;
+ return false;
+ }
+ }
+
+ /**
+ * This function performs the validation work for complex object models.
+ *
+ * In addition to checking the current object, all related objects will
+ * also be validated. If all pass then true is returned; otherwise
+ * an aggreagated array of ValidationFailed objects will be returned.
+ *
+ * @param array $columns Array of column names to validate.
+ * @return mixed true if all validations pass;
+ array of ValidationFailed objects otherwise.
+ */
+ protected function doValidate($columns = null)
+ {
+ if (!$this->alreadyInValidation) {
+ $this->alreadyInValidation = true;
+ $retval = null;
+
+ $failureMap = array();
+
+
+ if (($retval = MessageEventRelationPeer::doValidate($this, $columns)) !== true) {
+ $failureMap = array_merge($failureMap, $retval);
+ }
+
+
+
+ $this->alreadyInValidation = false;
+ }
+
+ return (!empty($failureMap) ? $failureMap : true);
+ }
+
+ /**
+ * Retrieves a field from the object by name passed in as a string.
+ *
+ * @param string $name name
+ * @param string $type The type of fieldname the $name is of:
+ * one of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return mixed Value of field.
+ */
+ public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
+ {
+ $pos = MessageEventRelationPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
+ return $this->getByPosition($pos);
+ }
+
+ /**
+ * Retrieves a field from the object by Position as specified in the xml schema.
+ * Zero-based.
+ *
+ * @param int $pos position in xml schema
+ * @return mixed Value of field at $pos
+ */
+ public function getByPosition($pos)
+ {
+ switch($pos) {
+ case 0:
+ return $this->getMsgerUid();
+ break;
+ case 1:
+ return $this->getPrjUid();
+ break;
+ case 2:
+ return $this->getEvnUidThrow();
+ break;
+ case 3:
+ return $this->getEvnUidCatch();
+ break;
+ default:
+ return null;
+ break;
+ } // switch()
+ }
+
+ /**
+ * Exports the object as an array.
+ *
+ * You can specify the key type of the array by passing one of the class
+ * type constants.
+ *
+ * @param string $keyType One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return an associative array containing the field names (as keys) and field values
+ */
+ public function toArray($keyType = BasePeer::TYPE_PHPNAME)
+ {
+ $keys = MessageEventRelationPeer::getFieldNames($keyType);
+ $result = array(
+ $keys[0] => $this->getMsgerUid(),
+ $keys[1] => $this->getPrjUid(),
+ $keys[2] => $this->getEvnUidThrow(),
+ $keys[3] => $this->getEvnUidCatch(),
+ );
+ return $result;
+ }
+
+ /**
+ * Sets a field from the object by name passed in as a string.
+ *
+ * @param string $name peer name
+ * @param mixed $value field value
+ * @param string $type The type of fieldname the $name is of:
+ * one of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return void
+ */
+ public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
+ {
+ $pos = MessageEventRelationPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
+ return $this->setByPosition($pos, $value);
+ }
+
+ /**
+ * Sets a field from the object by Position as specified in the xml schema.
+ * Zero-based.
+ *
+ * @param int $pos position in xml schema
+ * @param mixed $value field value
+ * @return void
+ */
+ public function setByPosition($pos, $value)
+ {
+ switch($pos) {
+ case 0:
+ $this->setMsgerUid($value);
+ break;
+ case 1:
+ $this->setPrjUid($value);
+ break;
+ case 2:
+ $this->setEvnUidThrow($value);
+ break;
+ case 3:
+ $this->setEvnUidCatch($value);
+ break;
+ } // switch()
+ }
+
+ /**
+ * Populates the object using an array.
+ *
+ * This is particularly useful when populating an object from one of the
+ * request arrays (e.g. $_POST). This method goes through the column
+ * names, checking to see whether a matching key exists in populated
+ * array. If so the setByName() method is called for that column.
+ *
+ * You can specify the key type of the array by additionally passing one
+ * of the class type constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME,
+ * TYPE_NUM. The default key type is the column's phpname (e.g. 'authorId')
+ *
+ * @param array $arr An array to populate the object from.
+ * @param string $keyType The type of keys the array uses.
+ * @return void
+ */
+ public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
+ {
+ $keys = MessageEventRelationPeer::getFieldNames($keyType);
+
+ if (array_key_exists($keys[0], $arr)) {
+ $this->setMsgerUid($arr[$keys[0]]);
+ }
+
+ if (array_key_exists($keys[1], $arr)) {
+ $this->setPrjUid($arr[$keys[1]]);
+ }
+
+ if (array_key_exists($keys[2], $arr)) {
+ $this->setEvnUidThrow($arr[$keys[2]]);
+ }
+
+ if (array_key_exists($keys[3], $arr)) {
+ $this->setEvnUidCatch($arr[$keys[3]]);
+ }
+
+ }
+
+ /**
+ * Build a Criteria object containing the values of all modified columns in this object.
+ *
+ * @return Criteria The Criteria object containing all modified values.
+ */
+ public function buildCriteria()
+ {
+ $criteria = new Criteria(MessageEventRelationPeer::DATABASE_NAME);
+
+ if ($this->isColumnModified(MessageEventRelationPeer::MSGER_UID)) {
+ $criteria->add(MessageEventRelationPeer::MSGER_UID, $this->msger_uid);
+ }
+
+ if ($this->isColumnModified(MessageEventRelationPeer::PRJ_UID)) {
+ $criteria->add(MessageEventRelationPeer::PRJ_UID, $this->prj_uid);
+ }
+
+ if ($this->isColumnModified(MessageEventRelationPeer::EVN_UID_THROW)) {
+ $criteria->add(MessageEventRelationPeer::EVN_UID_THROW, $this->evn_uid_throw);
+ }
+
+ if ($this->isColumnModified(MessageEventRelationPeer::EVN_UID_CATCH)) {
+ $criteria->add(MessageEventRelationPeer::EVN_UID_CATCH, $this->evn_uid_catch);
+ }
+
+
+ return $criteria;
+ }
+
+ /**
+ * Builds a Criteria object containing the primary key for this object.
+ *
+ * Unlike buildCriteria() this method includes the primary key values regardless
+ * of whether or not they have been modified.
+ *
+ * @return Criteria The Criteria object containing value(s) for primary key(s).
+ */
+ public function buildPkeyCriteria()
+ {
+ $criteria = new Criteria(MessageEventRelationPeer::DATABASE_NAME);
+
+ $criteria->add(MessageEventRelationPeer::MSGER_UID, $this->msger_uid);
+
+ return $criteria;
+ }
+
+ /**
+ * Returns the primary key for this object (row).
+ * @return string
+ */
+ public function getPrimaryKey()
+ {
+ return $this->getMsgerUid();
+ }
+
+ /**
+ * Generic method to set the primary key (msger_uid column).
+ *
+ * @param string $key Primary key.
+ * @return void
+ */
+ public function setPrimaryKey($key)
+ {
+ $this->setMsgerUid($key);
+ }
+
+ /**
+ * Sets contents of passed object to values from current object.
+ *
+ * If desired, this method can also make copies of all associated (fkey referrers)
+ * objects.
+ *
+ * @param object $copyObj An object of MessageEventRelation (or compatible) type.
+ * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
+ * @throws PropelException
+ */
+ public function copyInto($copyObj, $deepCopy = false)
+ {
+
+ $copyObj->setPrjUid($this->prj_uid);
+
+ $copyObj->setEvnUidThrow($this->evn_uid_throw);
+
+ $copyObj->setEvnUidCatch($this->evn_uid_catch);
+
+
+ $copyObj->setNew(true);
+
+ $copyObj->setMsgerUid(NULL); // this is a pkey column, so set to default value
+
+ }
+
+ /**
+ * Makes a copy of this object that will be inserted as a new row in table when saved.
+ * It creates a new object filling in the simple attributes, but skipping any primary
+ * keys that are defined for the table.
+ *
+ * If desired, this method can also make copies of all associated (fkey referrers)
+ * objects.
+ *
+ * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
+ * @return MessageEventRelation Clone of current object.
+ * @throws PropelException
+ */
+ public function copy($deepCopy = false)
+ {
+ // we use get_class(), because this might be a subclass
+ $clazz = get_class($this);
+ $copyObj = new $clazz();
+ $this->copyInto($copyObj, $deepCopy);
+ return $copyObj;
+ }
+
+ /**
+ * Returns a peer instance associated with this om.
+ *
+ * Since Peer classes are not to have any instance attributes, this method returns the
+ * same instance for all member of this class. The method could therefore
+ * be static, but this would prevent one from overriding the behavior.
+ *
+ * @return MessageEventRelationPeer
+ */
+ public function getPeer()
+ {
+ if (self::$peer === null) {
+ self::$peer = new MessageEventRelationPeer();
+ }
+ return self::$peer;
+ }
+}
+
diff --git a/workflow/engine/classes/model/om/BaseMessageEventRelationPeer.php b/workflow/engine/classes/model/om/BaseMessageEventRelationPeer.php
new file mode 100644
index 000000000..379fa84c9
--- /dev/null
+++ b/workflow/engine/classes/model/om/BaseMessageEventRelationPeer.php
@@ -0,0 +1,582 @@
+ array ('MsgerUid', 'PrjUid', 'EvnUidThrow', 'EvnUidCatch', ),
+ BasePeer::TYPE_COLNAME => array (MessageEventRelationPeer::MSGER_UID, MessageEventRelationPeer::PRJ_UID, MessageEventRelationPeer::EVN_UID_THROW, MessageEventRelationPeer::EVN_UID_CATCH, ),
+ BasePeer::TYPE_FIELDNAME => array ('MSGER_UID', 'PRJ_UID', 'EVN_UID_THROW', 'EVN_UID_CATCH', ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, )
+ );
+
+ /**
+ * holds an array of keys for quick access to the fieldnames array
+ *
+ * first dimension keys are the type constants
+ * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
+ */
+ private static $fieldKeys = array (
+ BasePeer::TYPE_PHPNAME => array ('MsgerUid' => 0, 'PrjUid' => 1, 'EvnUidThrow' => 2, 'EvnUidCatch' => 3, ),
+ BasePeer::TYPE_COLNAME => array (MessageEventRelationPeer::MSGER_UID => 0, MessageEventRelationPeer::PRJ_UID => 1, MessageEventRelationPeer::EVN_UID_THROW => 2, MessageEventRelationPeer::EVN_UID_CATCH => 3, ),
+ BasePeer::TYPE_FIELDNAME => array ('MSGER_UID' => 0, 'PRJ_UID' => 1, 'EVN_UID_THROW' => 2, 'EVN_UID_CATCH' => 3, ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, )
+ );
+
+ /**
+ * @return MapBuilder the map builder for this peer
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function getMapBuilder()
+ {
+ include_once 'classes/model/map/MessageEventRelationMapBuilder.php';
+ return BasePeer::getMapBuilder('classes.model.map.MessageEventRelationMapBuilder');
+ }
+ /**
+ * Gets a map (hash) of PHP names to DB column names.
+ *
+ * @return array The PHP to DB name map for this peer
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ * @deprecated Use the getFieldNames() and translateFieldName() methods instead of this.
+ */
+ public static function getPhpNameMap()
+ {
+ if (self::$phpNameMap === null) {
+ $map = MessageEventRelationPeer::getTableMap();
+ $columns = $map->getColumns();
+ $nameMap = array();
+ foreach ($columns as $column) {
+ $nameMap[$column->getPhpName()] = $column->getColumnName();
+ }
+ self::$phpNameMap = $nameMap;
+ }
+ return self::$phpNameMap;
+ }
+ /**
+ * Translates a fieldname to another type
+ *
+ * @param string $name field name
+ * @param string $fromType One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @param string $toType One of the class type constants
+ * @return string translated name of the field.
+ */
+ static public function translateFieldName($name, $fromType, $toType)
+ {
+ $toNames = self::getFieldNames($toType);
+ $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;
+ if ($key === null) {
+ throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true));
+ }
+ return $toNames[$key];
+ }
+
+ /**
+ * Returns an array of of field names.
+ *
+ * @param string $type The type of fieldnames to return:
+ * One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return array A list of field names
+ */
+
+ static public function getFieldNames($type = BasePeer::TYPE_PHPNAME)
+ {
+ if (!array_key_exists($type, self::$fieldNames)) {
+ throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM. ' . $type . ' was given.');
+ }
+ return self::$fieldNames[$type];
+ }
+
+ /**
+ * Convenience method which changes table.column to alias.column.
+ *
+ * Using this method you can maintain SQL abstraction while using column aliases.
+ *
+ * $c->addAlias("alias1", TablePeer::TABLE_NAME);
+ * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
+ *
+ * @param string $alias The alias for the current table.
+ * @param string $column The column name for current table. (i.e. MessageEventRelationPeer::COLUMN_NAME).
+ * @return string
+ */
+ public static function alias($alias, $column)
+ {
+ return str_replace(MessageEventRelationPeer::TABLE_NAME.'.', $alias.'.', $column);
+ }
+
+ /**
+ * Add all the columns needed to create a new object.
+ *
+ * Note: any columns that were marked with lazyLoad="true" in the
+ * XML schema will not be added to the select list and only loaded
+ * on demand.
+ *
+ * @param criteria object containing the columns to add.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function addSelectColumns(Criteria $criteria)
+ {
+
+ $criteria->addSelectColumn(MessageEventRelationPeer::MSGER_UID);
+
+ $criteria->addSelectColumn(MessageEventRelationPeer::PRJ_UID);
+
+ $criteria->addSelectColumn(MessageEventRelationPeer::EVN_UID_THROW);
+
+ $criteria->addSelectColumn(MessageEventRelationPeer::EVN_UID_CATCH);
+
+ }
+
+ const COUNT = 'COUNT(MESSAGE_EVENT_RELATION.MSGER_UID)';
+ const COUNT_DISTINCT = 'COUNT(DISTINCT MESSAGE_EVENT_RELATION.MSGER_UID)';
+
+ /**
+ * Returns the number of rows matching criteria.
+ *
+ * @param Criteria $criteria
+ * @param boolean $distinct Whether to select only distinct columns (You can also set DISTINCT modifier in Criteria).
+ * @param Connection $con
+ * @return int Number of matching rows.
+ */
+ public static function doCount(Criteria $criteria, $distinct = false, $con = null)
+ {
+ // we're going to modify criteria, so copy it first
+ $criteria = clone $criteria;
+
+ // clear out anything that might confuse the ORDER BY clause
+ $criteria->clearSelectColumns()->clearOrderByColumns();
+ if ($distinct || in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {
+ $criteria->addSelectColumn(MessageEventRelationPeer::COUNT_DISTINCT);
+ } else {
+ $criteria->addSelectColumn(MessageEventRelationPeer::COUNT);
+ }
+
+ // just in case we're grouping: add those columns to the select statement
+ foreach ($criteria->getGroupByColumns() as $column) {
+ $criteria->addSelectColumn($column);
+ }
+
+ $rs = MessageEventRelationPeer::doSelectRS($criteria, $con);
+ if ($rs->next()) {
+ return $rs->getInt(1);
+ } else {
+ // no rows returned; we infer that means 0 matches.
+ return 0;
+ }
+ }
+ /**
+ * Method to select one object from the DB.
+ *
+ * @param Criteria $criteria object used to create the SELECT statement.
+ * @param Connection $con
+ * @return MessageEventRelation
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doSelectOne(Criteria $criteria, $con = null)
+ {
+ $critcopy = clone $criteria;
+ $critcopy->setLimit(1);
+ $objects = MessageEventRelationPeer::doSelect($critcopy, $con);
+ if ($objects) {
+ return $objects[0];
+ }
+ return null;
+ }
+ /**
+ * Method to do selects.
+ *
+ * @param Criteria $criteria The Criteria object used to build the SELECT statement.
+ * @param Connection $con
+ * @return array Array of selected Objects
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doSelect(Criteria $criteria, $con = null)
+ {
+ return MessageEventRelationPeer::populateObjects(MessageEventRelationPeer::doSelectRS($criteria, $con));
+ }
+ /**
+ * Prepares the Criteria object and uses the parent doSelect()
+ * method to get a ResultSet.
+ *
+ * Use this method directly if you want to just get the resultset
+ * (instead of an array of objects).
+ *
+ * @param Criteria $criteria The Criteria object used to build the SELECT statement.
+ * @param Connection $con the connection to use
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ * @return ResultSet The resultset object with numerically-indexed fields.
+ * @see BasePeer::doSelect()
+ */
+ public static function doSelectRS(Criteria $criteria, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ if (!$criteria->getSelectColumns()) {
+ $criteria = clone $criteria;
+ MessageEventRelationPeer::addSelectColumns($criteria);
+ }
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ // BasePeer returns a Creole ResultSet, set to return
+ // rows indexed numerically.
+ return BasePeer::doSelect($criteria, $con);
+ }
+ /**
+ * The returned array will contain objects of the default type or
+ * objects that inherit from the default.
+ *
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function populateObjects(ResultSet $rs)
+ {
+ $results = array();
+
+ // set the class once to avoid overhead in the loop
+ $cls = MessageEventRelationPeer::getOMClass();
+ $cls = Propel::import($cls);
+ // populate the object(s)
+ while ($rs->next()) {
+
+ $obj = new $cls();
+ $obj->hydrate($rs);
+ $results[] = $obj;
+
+ }
+ return $results;
+ }
+ /**
+ * Returns the TableMap related to this peer.
+ * This method is not needed for general use but a specific application could have a need.
+ * @return TableMap
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function getTableMap()
+ {
+ return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);
+ }
+
+ /**
+ * The class that the Peer will make instances of.
+ *
+ * This uses a dot-path notation which is tranalted into a path
+ * relative to a location on the PHP include_path.
+ * (e.g. path.to.MyClass -> 'path/to/MyClass.php')
+ *
+ * @return string path.to.ClassName
+ */
+ public static function getOMClass()
+ {
+ return MessageEventRelationPeer::CLASS_DEFAULT;
+ }
+
+ /**
+ * Method perform an INSERT on the database, given a MessageEventRelation or Criteria object.
+ *
+ * @param mixed $values Criteria or MessageEventRelation object containing data that is used to create the INSERT statement.
+ * @param Connection $con the connection to use
+ * @return mixed The new primary key.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doInsert($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+ } else {
+ $criteria = $values->buildCriteria(); // build Criteria from MessageEventRelation object
+ }
+
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table (I guess, conceivably)
+ $con->begin();
+ $pk = BasePeer::doInsert($criteria, $con);
+ $con->commit();
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+
+ return $pk;
+ }
+
+ /**
+ * Method perform an UPDATE on the database, given a MessageEventRelation or Criteria object.
+ *
+ * @param mixed $values Criteria or MessageEventRelation object containing data create the UPDATE statement.
+ * @param Connection $con The connection to use (specify Connection exert more control over transactions).
+ * @return int The number of affected rows (if supported by underlying database driver).
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doUpdate($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $selectCriteria = new Criteria(self::DATABASE_NAME);
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+
+ $comparison = $criteria->getComparison(MessageEventRelationPeer::MSGER_UID);
+ $selectCriteria->add(MessageEventRelationPeer::MSGER_UID, $criteria->remove(MessageEventRelationPeer::MSGER_UID), $comparison);
+
+ } else {
+ $criteria = $values->buildCriteria(); // gets full criteria
+ $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
+ }
+
+ // set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ return BasePeer::doUpdate($selectCriteria, $criteria, $con);
+ }
+
+ /**
+ * Method to DELETE all rows from the MESSAGE_EVENT_RELATION table.
+ *
+ * @return int The number of affected rows (if supported by underlying database driver).
+ */
+ public static function doDeleteAll($con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+ $affectedRows = 0; // initialize var to track total num of affected rows
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table or we could emulating ON DELETE CASCADE, etc.
+ $con->begin();
+ $affectedRows += BasePeer::doDeleteAll(MessageEventRelationPeer::TABLE_NAME, $con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Method perform a DELETE on the database, given a MessageEventRelation or Criteria object OR a primary key value.
+ *
+ * @param mixed $values Criteria or MessageEventRelation object or primary key or array of primary keys
+ * which is used to create the DELETE statement
+ * @param Connection $con the connection to use
+ * @return int The number of affected rows (if supported by underlying database driver).
+ * This includes CASCADE-related rows
+ * if supported by native driver or if emulated using Propel.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doDelete($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(MessageEventRelationPeer::DATABASE_NAME);
+ }
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+ } elseif ($values instanceof MessageEventRelation) {
+
+ $criteria = $values->buildPkeyCriteria();
+ } else {
+ // it must be the primary key
+ $criteria = new Criteria(self::DATABASE_NAME);
+ $criteria->add(MessageEventRelationPeer::MSGER_UID, (array) $values, Criteria::IN);
+ }
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ $affectedRows = 0; // initialize var to track total num of affected rows
+
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table or we could emulating ON DELETE CASCADE, etc.
+ $con->begin();
+
+ $affectedRows += BasePeer::doDelete($criteria, $con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Validates all modified columns of given MessageEventRelation object.
+ * If parameter $columns is either a single column name or an array of column names
+ * than only those columns are validated.
+ *
+ * NOTICE: This does not apply to primary or foreign keys for now.
+ *
+ * @param MessageEventRelation $obj The object to validate.
+ * @param mixed $cols Column name or array of column names.
+ *
+ * @return mixed TRUE if all columns are valid or the error message of the first invalid column.
+ */
+ public static function doValidate(MessageEventRelation $obj, $cols = null)
+ {
+ $columns = array();
+
+ if ($cols) {
+ $dbMap = Propel::getDatabaseMap(MessageEventRelationPeer::DATABASE_NAME);
+ $tableMap = $dbMap->getTable(MessageEventRelationPeer::TABLE_NAME);
+
+ if (! is_array($cols)) {
+ $cols = array($cols);
+ }
+
+ foreach ($cols as $colName) {
+ if ($tableMap->containsColumn($colName)) {
+ $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
+ $columns[$colName] = $obj->$get();
+ }
+ }
+ } else {
+
+ }
+
+ return BasePeer::doValidate(MessageEventRelationPeer::DATABASE_NAME, MessageEventRelationPeer::TABLE_NAME, $columns);
+ }
+
+ /**
+ * Retrieve a single object by pkey.
+ *
+ * @param mixed $pk the primary key.
+ * @param Connection $con the connection to use
+ * @return MessageEventRelation
+ */
+ public static function retrieveByPK($pk, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $criteria = new Criteria(MessageEventRelationPeer::DATABASE_NAME);
+
+ $criteria->add(MessageEventRelationPeer::MSGER_UID, $pk);
+
+
+ $v = MessageEventRelationPeer::doSelect($criteria, $con);
+
+ return !empty($v) > 0 ? $v[0] : null;
+ }
+
+ /**
+ * Retrieve multiple objects by pkey.
+ *
+ * @param array $pks List of primary keys
+ * @param Connection $con the connection to use
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function retrieveByPKs($pks, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $objs = null;
+ if (empty($pks)) {
+ $objs = array();
+ } else {
+ $criteria = new Criteria();
+ $criteria->add(MessageEventRelationPeer::MSGER_UID, $pks, Criteria::IN);
+ $objs = MessageEventRelationPeer::doSelect($criteria, $con);
+ }
+ return $objs;
+ }
+}
+
+
+// static code to register the map builder for this Peer with the main Propel class
+if (Propel::isInit()) {
+ // the MapBuilder classes register themselves with Propel during initialization
+ // so we need to load them here.
+ try {
+ BaseMessageEventRelationPeer::getMapBuilder();
+ } catch (Exception $e) {
+ Propel::log('Could not initialize Peer: ' . $e->getMessage(), Propel::LOG_ERR);
+ }
+} else {
+ // even if Propel is not yet initialized, the map builder class can be registered
+ // now and then it will be loaded when Propel initializes.
+ require_once 'classes/model/map/MessageEventRelationMapBuilder.php';
+ Propel::registerMapBuilder('classes.model.map.MessageEventRelationMapBuilder');
+}
+
diff --git a/workflow/engine/classes/model/om/BaseMessageEventTaskRelation.php b/workflow/engine/classes/model/om/BaseMessageEventTaskRelation.php
new file mode 100644
index 000000000..44208e082
--- /dev/null
+++ b/workflow/engine/classes/model/om/BaseMessageEventTaskRelation.php
@@ -0,0 +1,684 @@
+msgetr_uid;
+ }
+
+ /**
+ * Get the [prj_uid] column value.
+ *
+ * @return string
+ */
+ public function getPrjUid()
+ {
+
+ return $this->prj_uid;
+ }
+
+ /**
+ * Get the [evn_uid] column value.
+ *
+ * @return string
+ */
+ public function getEvnUid()
+ {
+
+ return $this->evn_uid;
+ }
+
+ /**
+ * Get the [tas_uid] column value.
+ *
+ * @return string
+ */
+ public function getTasUid()
+ {
+
+ return $this->tas_uid;
+ }
+
+ /**
+ * Set the value of [msgetr_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setMsgetrUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->msgetr_uid !== $v) {
+ $this->msgetr_uid = $v;
+ $this->modifiedColumns[] = MessageEventTaskRelationPeer::MSGETR_UID;
+ }
+
+ } // setMsgetrUid()
+
+ /**
+ * Set the value of [prj_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setPrjUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->prj_uid !== $v) {
+ $this->prj_uid = $v;
+ $this->modifiedColumns[] = MessageEventTaskRelationPeer::PRJ_UID;
+ }
+
+ } // setPrjUid()
+
+ /**
+ * Set the value of [evn_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setEvnUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->evn_uid !== $v) {
+ $this->evn_uid = $v;
+ $this->modifiedColumns[] = MessageEventTaskRelationPeer::EVN_UID;
+ }
+
+ } // setEvnUid()
+
+ /**
+ * Set the value of [tas_uid] column.
+ *
+ * @param string $v new value
+ * @return void
+ */
+ public function setTasUid($v)
+ {
+
+ // Since the native PHP type for this column is string,
+ // we will cast the input to a string (if it is not).
+ if ($v !== null && !is_string($v)) {
+ $v = (string) $v;
+ }
+
+ if ($this->tas_uid !== $v) {
+ $this->tas_uid = $v;
+ $this->modifiedColumns[] = MessageEventTaskRelationPeer::TAS_UID;
+ }
+
+ } // setTasUid()
+
+ /**
+ * Hydrates (populates) the object variables with values from the database resultset.
+ *
+ * An offset (1-based "start column") is specified so that objects can be hydrated
+ * with a subset of the columns in the resultset rows. This is needed, for example,
+ * for results of JOIN queries where the resultset row includes columns from two or
+ * more tables.
+ *
+ * @param ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
+ * @param int $startcol 1-based offset column which indicates which restultset column to start with.
+ * @return int next starting column
+ * @throws PropelException - Any caught Exception will be rewrapped as a PropelException.
+ */
+ public function hydrate(ResultSet $rs, $startcol = 1)
+ {
+ try {
+
+ $this->msgetr_uid = $rs->getString($startcol + 0);
+
+ $this->prj_uid = $rs->getString($startcol + 1);
+
+ $this->evn_uid = $rs->getString($startcol + 2);
+
+ $this->tas_uid = $rs->getString($startcol + 3);
+
+ $this->resetModified();
+
+ $this->setNew(false);
+
+ // FIXME - using NUM_COLUMNS may be clearer.
+ return $startcol + 4; // 4 = MessageEventTaskRelationPeer::NUM_COLUMNS - MessageEventTaskRelationPeer::NUM_LAZY_LOAD_COLUMNS).
+
+ } catch (Exception $e) {
+ throw new PropelException("Error populating MessageEventTaskRelation object", $e);
+ }
+ }
+
+ /**
+ * Removes this object from datastore and sets delete attribute.
+ *
+ * @param Connection $con
+ * @return void
+ * @throws PropelException
+ * @see BaseObject::setDeleted()
+ * @see BaseObject::isDeleted()
+ */
+ public function delete($con = null)
+ {
+ if ($this->isDeleted()) {
+ throw new PropelException("This object has already been deleted.");
+ }
+
+ if ($con === null) {
+ $con = Propel::getConnection(MessageEventTaskRelationPeer::DATABASE_NAME);
+ }
+
+ try {
+ $con->begin();
+ MessageEventTaskRelationPeer::doDelete($this, $con);
+ $this->setDeleted(true);
+ $con->commit();
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Stores the object in the database. If the object is new,
+ * it inserts it; otherwise an update is performed. This method
+ * wraps the doSave() worker method in a transaction.
+ *
+ * @param Connection $con
+ * @return int The number of rows affected by this insert/update
+ * @throws PropelException
+ * @see doSave()
+ */
+ public function save($con = null)
+ {
+ if ($this->isDeleted()) {
+ throw new PropelException("You cannot save an object that has been deleted.");
+ }
+
+ if ($con === null) {
+ $con = Propel::getConnection(MessageEventTaskRelationPeer::DATABASE_NAME);
+ }
+
+ try {
+ $con->begin();
+ $affectedRows = $this->doSave($con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Stores the object in the database.
+ *
+ * If the object is new, it inserts it; otherwise an update is performed.
+ * All related objects are also updated in this method.
+ *
+ * @param Connection $con
+ * @return int The number of rows affected by this insert/update and any referring
+ * @throws PropelException
+ * @see save()
+ */
+ protected function doSave($con)
+ {
+ $affectedRows = 0; // initialize var to track total num of affected rows
+ if (!$this->alreadyInSave) {
+ $this->alreadyInSave = true;
+
+
+ // If this object has been modified, then save it to the database.
+ if ($this->isModified()) {
+ if ($this->isNew()) {
+ $pk = MessageEventTaskRelationPeer::doInsert($this, $con);
+ $affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
+ // should always be true here (even though technically
+ // BasePeer::doInsert() can insert multiple rows).
+
+ $this->setNew(false);
+ } else {
+ $affectedRows += MessageEventTaskRelationPeer::doUpdate($this, $con);
+ }
+ $this->resetModified(); // [HL] After being saved an object is no longer 'modified'
+ }
+
+ $this->alreadyInSave = false;
+ }
+ return $affectedRows;
+ } // doSave()
+
+ /**
+ * Array of ValidationFailed objects.
+ * @var array ValidationFailed[]
+ */
+ protected $validationFailures = array();
+
+ /**
+ * Gets any ValidationFailed objects that resulted from last call to validate().
+ *
+ *
+ * @return array ValidationFailed[]
+ * @see validate()
+ */
+ public function getValidationFailures()
+ {
+ return $this->validationFailures;
+ }
+
+ /**
+ * Validates the objects modified field values and all objects related to this table.
+ *
+ * If $columns is either a column name or an array of column names
+ * only those columns are validated.
+ *
+ * @param mixed $columns Column name or an array of column names.
+ * @return boolean Whether all columns pass validation.
+ * @see doValidate()
+ * @see getValidationFailures()
+ */
+ public function validate($columns = null)
+ {
+ $res = $this->doValidate($columns);
+ if ($res === true) {
+ $this->validationFailures = array();
+ return true;
+ } else {
+ $this->validationFailures = $res;
+ return false;
+ }
+ }
+
+ /**
+ * This function performs the validation work for complex object models.
+ *
+ * In addition to checking the current object, all related objects will
+ * also be validated. If all pass then true is returned; otherwise
+ * an aggreagated array of ValidationFailed objects will be returned.
+ *
+ * @param array $columns Array of column names to validate.
+ * @return mixed true if all validations pass;
+ array of ValidationFailed objects otherwise.
+ */
+ protected function doValidate($columns = null)
+ {
+ if (!$this->alreadyInValidation) {
+ $this->alreadyInValidation = true;
+ $retval = null;
+
+ $failureMap = array();
+
+
+ if (($retval = MessageEventTaskRelationPeer::doValidate($this, $columns)) !== true) {
+ $failureMap = array_merge($failureMap, $retval);
+ }
+
+
+
+ $this->alreadyInValidation = false;
+ }
+
+ return (!empty($failureMap) ? $failureMap : true);
+ }
+
+ /**
+ * Retrieves a field from the object by name passed in as a string.
+ *
+ * @param string $name name
+ * @param string $type The type of fieldname the $name is of:
+ * one of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return mixed Value of field.
+ */
+ public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
+ {
+ $pos = MessageEventTaskRelationPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
+ return $this->getByPosition($pos);
+ }
+
+ /**
+ * Retrieves a field from the object by Position as specified in the xml schema.
+ * Zero-based.
+ *
+ * @param int $pos position in xml schema
+ * @return mixed Value of field at $pos
+ */
+ public function getByPosition($pos)
+ {
+ switch($pos) {
+ case 0:
+ return $this->getMsgetrUid();
+ break;
+ case 1:
+ return $this->getPrjUid();
+ break;
+ case 2:
+ return $this->getEvnUid();
+ break;
+ case 3:
+ return $this->getTasUid();
+ break;
+ default:
+ return null;
+ break;
+ } // switch()
+ }
+
+ /**
+ * Exports the object as an array.
+ *
+ * You can specify the key type of the array by passing one of the class
+ * type constants.
+ *
+ * @param string $keyType One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return an associative array containing the field names (as keys) and field values
+ */
+ public function toArray($keyType = BasePeer::TYPE_PHPNAME)
+ {
+ $keys = MessageEventTaskRelationPeer::getFieldNames($keyType);
+ $result = array(
+ $keys[0] => $this->getMsgetrUid(),
+ $keys[1] => $this->getPrjUid(),
+ $keys[2] => $this->getEvnUid(),
+ $keys[3] => $this->getTasUid(),
+ );
+ return $result;
+ }
+
+ /**
+ * Sets a field from the object by name passed in as a string.
+ *
+ * @param string $name peer name
+ * @param mixed $value field value
+ * @param string $type The type of fieldname the $name is of:
+ * one of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return void
+ */
+ public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
+ {
+ $pos = MessageEventTaskRelationPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
+ return $this->setByPosition($pos, $value);
+ }
+
+ /**
+ * Sets a field from the object by Position as specified in the xml schema.
+ * Zero-based.
+ *
+ * @param int $pos position in xml schema
+ * @param mixed $value field value
+ * @return void
+ */
+ public function setByPosition($pos, $value)
+ {
+ switch($pos) {
+ case 0:
+ $this->setMsgetrUid($value);
+ break;
+ case 1:
+ $this->setPrjUid($value);
+ break;
+ case 2:
+ $this->setEvnUid($value);
+ break;
+ case 3:
+ $this->setTasUid($value);
+ break;
+ } // switch()
+ }
+
+ /**
+ * Populates the object using an array.
+ *
+ * This is particularly useful when populating an object from one of the
+ * request arrays (e.g. $_POST). This method goes through the column
+ * names, checking to see whether a matching key exists in populated
+ * array. If so the setByName() method is called for that column.
+ *
+ * You can specify the key type of the array by additionally passing one
+ * of the class type constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME,
+ * TYPE_NUM. The default key type is the column's phpname (e.g. 'authorId')
+ *
+ * @param array $arr An array to populate the object from.
+ * @param string $keyType The type of keys the array uses.
+ * @return void
+ */
+ public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
+ {
+ $keys = MessageEventTaskRelationPeer::getFieldNames($keyType);
+
+ if (array_key_exists($keys[0], $arr)) {
+ $this->setMsgetrUid($arr[$keys[0]]);
+ }
+
+ if (array_key_exists($keys[1], $arr)) {
+ $this->setPrjUid($arr[$keys[1]]);
+ }
+
+ if (array_key_exists($keys[2], $arr)) {
+ $this->setEvnUid($arr[$keys[2]]);
+ }
+
+ if (array_key_exists($keys[3], $arr)) {
+ $this->setTasUid($arr[$keys[3]]);
+ }
+
+ }
+
+ /**
+ * Build a Criteria object containing the values of all modified columns in this object.
+ *
+ * @return Criteria The Criteria object containing all modified values.
+ */
+ public function buildCriteria()
+ {
+ $criteria = new Criteria(MessageEventTaskRelationPeer::DATABASE_NAME);
+
+ if ($this->isColumnModified(MessageEventTaskRelationPeer::MSGETR_UID)) {
+ $criteria->add(MessageEventTaskRelationPeer::MSGETR_UID, $this->msgetr_uid);
+ }
+
+ if ($this->isColumnModified(MessageEventTaskRelationPeer::PRJ_UID)) {
+ $criteria->add(MessageEventTaskRelationPeer::PRJ_UID, $this->prj_uid);
+ }
+
+ if ($this->isColumnModified(MessageEventTaskRelationPeer::EVN_UID)) {
+ $criteria->add(MessageEventTaskRelationPeer::EVN_UID, $this->evn_uid);
+ }
+
+ if ($this->isColumnModified(MessageEventTaskRelationPeer::TAS_UID)) {
+ $criteria->add(MessageEventTaskRelationPeer::TAS_UID, $this->tas_uid);
+ }
+
+
+ return $criteria;
+ }
+
+ /**
+ * Builds a Criteria object containing the primary key for this object.
+ *
+ * Unlike buildCriteria() this method includes the primary key values regardless
+ * of whether or not they have been modified.
+ *
+ * @return Criteria The Criteria object containing value(s) for primary key(s).
+ */
+ public function buildPkeyCriteria()
+ {
+ $criteria = new Criteria(MessageEventTaskRelationPeer::DATABASE_NAME);
+
+ $criteria->add(MessageEventTaskRelationPeer::MSGETR_UID, $this->msgetr_uid);
+
+ return $criteria;
+ }
+
+ /**
+ * Returns the primary key for this object (row).
+ * @return string
+ */
+ public function getPrimaryKey()
+ {
+ return $this->getMsgetrUid();
+ }
+
+ /**
+ * Generic method to set the primary key (msgetr_uid column).
+ *
+ * @param string $key Primary key.
+ * @return void
+ */
+ public function setPrimaryKey($key)
+ {
+ $this->setMsgetrUid($key);
+ }
+
+ /**
+ * Sets contents of passed object to values from current object.
+ *
+ * If desired, this method can also make copies of all associated (fkey referrers)
+ * objects.
+ *
+ * @param object $copyObj An object of MessageEventTaskRelation (or compatible) type.
+ * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
+ * @throws PropelException
+ */
+ public function copyInto($copyObj, $deepCopy = false)
+ {
+
+ $copyObj->setPrjUid($this->prj_uid);
+
+ $copyObj->setEvnUid($this->evn_uid);
+
+ $copyObj->setTasUid($this->tas_uid);
+
+
+ $copyObj->setNew(true);
+
+ $copyObj->setMsgetrUid(NULL); // this is a pkey column, so set to default value
+
+ }
+
+ /**
+ * Makes a copy of this object that will be inserted as a new row in table when saved.
+ * It creates a new object filling in the simple attributes, but skipping any primary
+ * keys that are defined for the table.
+ *
+ * If desired, this method can also make copies of all associated (fkey referrers)
+ * objects.
+ *
+ * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
+ * @return MessageEventTaskRelation Clone of current object.
+ * @throws PropelException
+ */
+ public function copy($deepCopy = false)
+ {
+ // we use get_class(), because this might be a subclass
+ $clazz = get_class($this);
+ $copyObj = new $clazz();
+ $this->copyInto($copyObj, $deepCopy);
+ return $copyObj;
+ }
+
+ /**
+ * Returns a peer instance associated with this om.
+ *
+ * Since Peer classes are not to have any instance attributes, this method returns the
+ * same instance for all member of this class. The method could therefore
+ * be static, but this would prevent one from overriding the behavior.
+ *
+ * @return MessageEventTaskRelationPeer
+ */
+ public function getPeer()
+ {
+ if (self::$peer === null) {
+ self::$peer = new MessageEventTaskRelationPeer();
+ }
+ return self::$peer;
+ }
+}
+
diff --git a/workflow/engine/classes/model/om/BaseMessageEventTaskRelationPeer.php b/workflow/engine/classes/model/om/BaseMessageEventTaskRelationPeer.php
new file mode 100644
index 000000000..d5a6f62d9
--- /dev/null
+++ b/workflow/engine/classes/model/om/BaseMessageEventTaskRelationPeer.php
@@ -0,0 +1,582 @@
+ array ('MsgetrUid', 'PrjUid', 'EvnUid', 'TasUid', ),
+ BasePeer::TYPE_COLNAME => array (MessageEventTaskRelationPeer::MSGETR_UID, MessageEventTaskRelationPeer::PRJ_UID, MessageEventTaskRelationPeer::EVN_UID, MessageEventTaskRelationPeer::TAS_UID, ),
+ BasePeer::TYPE_FIELDNAME => array ('MSGETR_UID', 'PRJ_UID', 'EVN_UID', 'TAS_UID', ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, )
+ );
+
+ /**
+ * holds an array of keys for quick access to the fieldnames array
+ *
+ * first dimension keys are the type constants
+ * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
+ */
+ private static $fieldKeys = array (
+ BasePeer::TYPE_PHPNAME => array ('MsgetrUid' => 0, 'PrjUid' => 1, 'EvnUid' => 2, 'TasUid' => 3, ),
+ BasePeer::TYPE_COLNAME => array (MessageEventTaskRelationPeer::MSGETR_UID => 0, MessageEventTaskRelationPeer::PRJ_UID => 1, MessageEventTaskRelationPeer::EVN_UID => 2, MessageEventTaskRelationPeer::TAS_UID => 3, ),
+ BasePeer::TYPE_FIELDNAME => array ('MSGETR_UID' => 0, 'PRJ_UID' => 1, 'EVN_UID' => 2, 'TAS_UID' => 3, ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, )
+ );
+
+ /**
+ * @return MapBuilder the map builder for this peer
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function getMapBuilder()
+ {
+ include_once 'classes/model/map/MessageEventTaskRelationMapBuilder.php';
+ return BasePeer::getMapBuilder('classes.model.map.MessageEventTaskRelationMapBuilder');
+ }
+ /**
+ * Gets a map (hash) of PHP names to DB column names.
+ *
+ * @return array The PHP to DB name map for this peer
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ * @deprecated Use the getFieldNames() and translateFieldName() methods instead of this.
+ */
+ public static function getPhpNameMap()
+ {
+ if (self::$phpNameMap === null) {
+ $map = MessageEventTaskRelationPeer::getTableMap();
+ $columns = $map->getColumns();
+ $nameMap = array();
+ foreach ($columns as $column) {
+ $nameMap[$column->getPhpName()] = $column->getColumnName();
+ }
+ self::$phpNameMap = $nameMap;
+ }
+ return self::$phpNameMap;
+ }
+ /**
+ * Translates a fieldname to another type
+ *
+ * @param string $name field name
+ * @param string $fromType One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @param string $toType One of the class type constants
+ * @return string translated name of the field.
+ */
+ static public function translateFieldName($name, $fromType, $toType)
+ {
+ $toNames = self::getFieldNames($toType);
+ $key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;
+ if ($key === null) {
+ throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true));
+ }
+ return $toNames[$key];
+ }
+
+ /**
+ * Returns an array of of field names.
+ *
+ * @param string $type The type of fieldnames to return:
+ * One of the class type constants TYPE_PHPNAME,
+ * TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
+ * @return array A list of field names
+ */
+
+ static public function getFieldNames($type = BasePeer::TYPE_PHPNAME)
+ {
+ if (!array_key_exists($type, self::$fieldNames)) {
+ throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM. ' . $type . ' was given.');
+ }
+ return self::$fieldNames[$type];
+ }
+
+ /**
+ * Convenience method which changes table.column to alias.column.
+ *
+ * Using this method you can maintain SQL abstraction while using column aliases.
+ *
+ * $c->addAlias("alias1", TablePeer::TABLE_NAME);
+ * $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
+ *
+ * @param string $alias The alias for the current table.
+ * @param string $column The column name for current table. (i.e. MessageEventTaskRelationPeer::COLUMN_NAME).
+ * @return string
+ */
+ public static function alias($alias, $column)
+ {
+ return str_replace(MessageEventTaskRelationPeer::TABLE_NAME.'.', $alias.'.', $column);
+ }
+
+ /**
+ * Add all the columns needed to create a new object.
+ *
+ * Note: any columns that were marked with lazyLoad="true" in the
+ * XML schema will not be added to the select list and only loaded
+ * on demand.
+ *
+ * @param criteria object containing the columns to add.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function addSelectColumns(Criteria $criteria)
+ {
+
+ $criteria->addSelectColumn(MessageEventTaskRelationPeer::MSGETR_UID);
+
+ $criteria->addSelectColumn(MessageEventTaskRelationPeer::PRJ_UID);
+
+ $criteria->addSelectColumn(MessageEventTaskRelationPeer::EVN_UID);
+
+ $criteria->addSelectColumn(MessageEventTaskRelationPeer::TAS_UID);
+
+ }
+
+ const COUNT = 'COUNT(MESSAGE_EVENT_TASK_RELATION.MSGETR_UID)';
+ const COUNT_DISTINCT = 'COUNT(DISTINCT MESSAGE_EVENT_TASK_RELATION.MSGETR_UID)';
+
+ /**
+ * Returns the number of rows matching criteria.
+ *
+ * @param Criteria $criteria
+ * @param boolean $distinct Whether to select only distinct columns (You can also set DISTINCT modifier in Criteria).
+ * @param Connection $con
+ * @return int Number of matching rows.
+ */
+ public static function doCount(Criteria $criteria, $distinct = false, $con = null)
+ {
+ // we're going to modify criteria, so copy it first
+ $criteria = clone $criteria;
+
+ // clear out anything that might confuse the ORDER BY clause
+ $criteria->clearSelectColumns()->clearOrderByColumns();
+ if ($distinct || in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {
+ $criteria->addSelectColumn(MessageEventTaskRelationPeer::COUNT_DISTINCT);
+ } else {
+ $criteria->addSelectColumn(MessageEventTaskRelationPeer::COUNT);
+ }
+
+ // just in case we're grouping: add those columns to the select statement
+ foreach ($criteria->getGroupByColumns() as $column) {
+ $criteria->addSelectColumn($column);
+ }
+
+ $rs = MessageEventTaskRelationPeer::doSelectRS($criteria, $con);
+ if ($rs->next()) {
+ return $rs->getInt(1);
+ } else {
+ // no rows returned; we infer that means 0 matches.
+ return 0;
+ }
+ }
+ /**
+ * Method to select one object from the DB.
+ *
+ * @param Criteria $criteria object used to create the SELECT statement.
+ * @param Connection $con
+ * @return MessageEventTaskRelation
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doSelectOne(Criteria $criteria, $con = null)
+ {
+ $critcopy = clone $criteria;
+ $critcopy->setLimit(1);
+ $objects = MessageEventTaskRelationPeer::doSelect($critcopy, $con);
+ if ($objects) {
+ return $objects[0];
+ }
+ return null;
+ }
+ /**
+ * Method to do selects.
+ *
+ * @param Criteria $criteria The Criteria object used to build the SELECT statement.
+ * @param Connection $con
+ * @return array Array of selected Objects
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doSelect(Criteria $criteria, $con = null)
+ {
+ return MessageEventTaskRelationPeer::populateObjects(MessageEventTaskRelationPeer::doSelectRS($criteria, $con));
+ }
+ /**
+ * Prepares the Criteria object and uses the parent doSelect()
+ * method to get a ResultSet.
+ *
+ * Use this method directly if you want to just get the resultset
+ * (instead of an array of objects).
+ *
+ * @param Criteria $criteria The Criteria object used to build the SELECT statement.
+ * @param Connection $con the connection to use
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ * @return ResultSet The resultset object with numerically-indexed fields.
+ * @see BasePeer::doSelect()
+ */
+ public static function doSelectRS(Criteria $criteria, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ if (!$criteria->getSelectColumns()) {
+ $criteria = clone $criteria;
+ MessageEventTaskRelationPeer::addSelectColumns($criteria);
+ }
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ // BasePeer returns a Creole ResultSet, set to return
+ // rows indexed numerically.
+ return BasePeer::doSelect($criteria, $con);
+ }
+ /**
+ * The returned array will contain objects of the default type or
+ * objects that inherit from the default.
+ *
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function populateObjects(ResultSet $rs)
+ {
+ $results = array();
+
+ // set the class once to avoid overhead in the loop
+ $cls = MessageEventTaskRelationPeer::getOMClass();
+ $cls = Propel::import($cls);
+ // populate the object(s)
+ while ($rs->next()) {
+
+ $obj = new $cls();
+ $obj->hydrate($rs);
+ $results[] = $obj;
+
+ }
+ return $results;
+ }
+ /**
+ * Returns the TableMap related to this peer.
+ * This method is not needed for general use but a specific application could have a need.
+ * @return TableMap
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function getTableMap()
+ {
+ return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);
+ }
+
+ /**
+ * The class that the Peer will make instances of.
+ *
+ * This uses a dot-path notation which is tranalted into a path
+ * relative to a location on the PHP include_path.
+ * (e.g. path.to.MyClass -> 'path/to/MyClass.php')
+ *
+ * @return string path.to.ClassName
+ */
+ public static function getOMClass()
+ {
+ return MessageEventTaskRelationPeer::CLASS_DEFAULT;
+ }
+
+ /**
+ * Method perform an INSERT on the database, given a MessageEventTaskRelation or Criteria object.
+ *
+ * @param mixed $values Criteria or MessageEventTaskRelation object containing data that is used to create the INSERT statement.
+ * @param Connection $con the connection to use
+ * @return mixed The new primary key.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doInsert($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+ } else {
+ $criteria = $values->buildCriteria(); // build Criteria from MessageEventTaskRelation object
+ }
+
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table (I guess, conceivably)
+ $con->begin();
+ $pk = BasePeer::doInsert($criteria, $con);
+ $con->commit();
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+
+ return $pk;
+ }
+
+ /**
+ * Method perform an UPDATE on the database, given a MessageEventTaskRelation or Criteria object.
+ *
+ * @param mixed $values Criteria or MessageEventTaskRelation object containing data create the UPDATE statement.
+ * @param Connection $con The connection to use (specify Connection exert more control over transactions).
+ * @return int The number of affected rows (if supported by underlying database driver).
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doUpdate($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $selectCriteria = new Criteria(self::DATABASE_NAME);
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+
+ $comparison = $criteria->getComparison(MessageEventTaskRelationPeer::MSGETR_UID);
+ $selectCriteria->add(MessageEventTaskRelationPeer::MSGETR_UID, $criteria->remove(MessageEventTaskRelationPeer::MSGETR_UID), $comparison);
+
+ } else {
+ $criteria = $values->buildCriteria(); // gets full criteria
+ $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
+ }
+
+ // set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ return BasePeer::doUpdate($selectCriteria, $criteria, $con);
+ }
+
+ /**
+ * Method to DELETE all rows from the MESSAGE_EVENT_TASK_RELATION table.
+ *
+ * @return int The number of affected rows (if supported by underlying database driver).
+ */
+ public static function doDeleteAll($con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+ $affectedRows = 0; // initialize var to track total num of affected rows
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table or we could emulating ON DELETE CASCADE, etc.
+ $con->begin();
+ $affectedRows += BasePeer::doDeleteAll(MessageEventTaskRelationPeer::TABLE_NAME, $con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Method perform a DELETE on the database, given a MessageEventTaskRelation or Criteria object OR a primary key value.
+ *
+ * @param mixed $values Criteria or MessageEventTaskRelation object or primary key or array of primary keys
+ * which is used to create the DELETE statement
+ * @param Connection $con the connection to use
+ * @return int The number of affected rows (if supported by underlying database driver).
+ * This includes CASCADE-related rows
+ * if supported by native driver or if emulated using Propel.
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function doDelete($values, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(MessageEventTaskRelationPeer::DATABASE_NAME);
+ }
+
+ if ($values instanceof Criteria) {
+ $criteria = clone $values; // rename for clarity
+ } elseif ($values instanceof MessageEventTaskRelation) {
+
+ $criteria = $values->buildPkeyCriteria();
+ } else {
+ // it must be the primary key
+ $criteria = new Criteria(self::DATABASE_NAME);
+ $criteria->add(MessageEventTaskRelationPeer::MSGETR_UID, (array) $values, Criteria::IN);
+ }
+
+ // Set the correct dbName
+ $criteria->setDbName(self::DATABASE_NAME);
+
+ $affectedRows = 0; // initialize var to track total num of affected rows
+
+ try {
+ // use transaction because $criteria could contain info
+ // for more than one table or we could emulating ON DELETE CASCADE, etc.
+ $con->begin();
+
+ $affectedRows += BasePeer::doDelete($criteria, $con);
+ $con->commit();
+ return $affectedRows;
+ } catch (PropelException $e) {
+ $con->rollback();
+ throw $e;
+ }
+ }
+
+ /**
+ * Validates all modified columns of given MessageEventTaskRelation object.
+ * If parameter $columns is either a single column name or an array of column names
+ * than only those columns are validated.
+ *
+ * NOTICE: This does not apply to primary or foreign keys for now.
+ *
+ * @param MessageEventTaskRelation $obj The object to validate.
+ * @param mixed $cols Column name or array of column names.
+ *
+ * @return mixed TRUE if all columns are valid or the error message of the first invalid column.
+ */
+ public static function doValidate(MessageEventTaskRelation $obj, $cols = null)
+ {
+ $columns = array();
+
+ if ($cols) {
+ $dbMap = Propel::getDatabaseMap(MessageEventTaskRelationPeer::DATABASE_NAME);
+ $tableMap = $dbMap->getTable(MessageEventTaskRelationPeer::TABLE_NAME);
+
+ if (! is_array($cols)) {
+ $cols = array($cols);
+ }
+
+ foreach ($cols as $colName) {
+ if ($tableMap->containsColumn($colName)) {
+ $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
+ $columns[$colName] = $obj->$get();
+ }
+ }
+ } else {
+
+ }
+
+ return BasePeer::doValidate(MessageEventTaskRelationPeer::DATABASE_NAME, MessageEventTaskRelationPeer::TABLE_NAME, $columns);
+ }
+
+ /**
+ * Retrieve a single object by pkey.
+ *
+ * @param mixed $pk the primary key.
+ * @param Connection $con the connection to use
+ * @return MessageEventTaskRelation
+ */
+ public static function retrieveByPK($pk, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $criteria = new Criteria(MessageEventTaskRelationPeer::DATABASE_NAME);
+
+ $criteria->add(MessageEventTaskRelationPeer::MSGETR_UID, $pk);
+
+
+ $v = MessageEventTaskRelationPeer::doSelect($criteria, $con);
+
+ return !empty($v) > 0 ? $v[0] : null;
+ }
+
+ /**
+ * Retrieve multiple objects by pkey.
+ *
+ * @param array $pks List of primary keys
+ * @param Connection $con the connection to use
+ * @throws PropelException Any exceptions caught during processing will be
+ * rethrown wrapped into a PropelException.
+ */
+ public static function retrieveByPKs($pks, $con = null)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(self::DATABASE_NAME);
+ }
+
+ $objs = null;
+ if (empty($pks)) {
+ $objs = array();
+ } else {
+ $criteria = new Criteria();
+ $criteria->add(MessageEventTaskRelationPeer::MSGETR_UID, $pks, Criteria::IN);
+ $objs = MessageEventTaskRelationPeer::doSelect($criteria, $con);
+ }
+ return $objs;
+ }
+}
+
+
+// static code to register the map builder for this Peer with the main Propel class
+if (Propel::isInit()) {
+ // the MapBuilder classes register themselves with Propel during initialization
+ // so we need to load them here.
+ try {
+ BaseMessageEventTaskRelationPeer::getMapBuilder();
+ } catch (Exception $e) {
+ Propel::log('Could not initialize Peer: ' . $e->getMessage(), Propel::LOG_ERR);
+ }
+} else {
+ // even if Propel is not yet initialized, the map builder class can be registered
+ // now and then it will be loaded when Propel initializes.
+ require_once 'classes/model/map/MessageEventTaskRelationMapBuilder.php';
+ Propel::registerMapBuilder('classes.model.map.MessageEventTaskRelationMapBuilder');
+}
+
diff --git a/workflow/engine/config/schema.xml b/workflow/engine/config/schema.xml
index ce5e8bd11..a72dcc672 100755
--- a/workflow/engine/config/schema.xml
+++ b/workflow/engine/config/schema.xml
@@ -1,4264 +1,4462 @@
-
-