Merge branch 'master' of bitbucket.org:colosa/processmaker

This commit is contained in:
Victor Saisa Lopez
2014-06-17 09:09:01 -04:00
42 changed files with 450 additions and 76 deletions

View File

@@ -14,6 +14,19 @@ require_once 'classes/model/om/BasePmoauthUserAccessTokens.php';
*
* @package classes.model
*/
class PmoauthUserAccessTokens extends BasePmoauthUserAccessTokens {
class PmoauthUserAccessTokens extends BasePmoauthUserAccessTokens
{
/**
* @param $token
* @return \PmoauthUserAccessTokens|bool
*/
public function getSessionData($token)
{
$c = new Criteria('workflow');
//$c->addSelectColumn(PmoauthUserAccessTokensPeer::ACCESS_TOKEN);
$c->add(PmoauthUserAccessTokensPeer::ACCESS_TOKEN, $token, Criteria::EQUAL);
$result = PmoauthUserAccessTokensPeer::doSelect($c);
return (is_array($result) && empty($result)) ? false : $result[0];
}
} // PmoauthUserAccessTokens

View File

@@ -8,6 +8,7 @@ include_once 'creole/CreoleTypes.php';
* This class adds structure of 'OUTPUT_DOCUMENT' table to 'workflow' DatabaseMap object.
*
*
*
* These statically-built map classes are used by Propel to do runtime db structure discovery.
* For example, the createSelectSql() method checks the type of a given column used in an
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive

View File

@@ -71,7 +71,9 @@ class PmoauthUserAccessTokensMapBuilder
$tMap->addColumn('USER_ID', 'UserId', 'string', CreoleTypes::VARCHAR, false, 32);
$tMap->addColumn('SESSION_ID', 'SessionId', 'string', CreoleTypes::VARCHAR, true, 40);
$tMap->addColumn('SESSION_ID', 'SessionId', 'string', CreoleTypes::VARCHAR, true, 64);
$tMap->addColumn('SESSION_NAME', 'SessionName', 'string', CreoleTypes::VARCHAR, true, 64);
} // doBuild()

View File

@@ -924,6 +924,10 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
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));
@@ -949,6 +953,10 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
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));
@@ -974,6 +982,10 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
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_task_due_date] from input: " .
var_export($v, true));
@@ -999,6 +1011,10 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
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_finish_date] from input: " .
var_export($v, true));
@@ -1314,6 +1330,10 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
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_create_date] from input: " .
var_export($v, true));
@@ -1339,6 +1359,10 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
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_finish_date] from input: " .
var_export($v, true));
@@ -1364,6 +1388,10 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
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_update_date] from input: " .
var_export($v, true));

View File

@@ -573,6 +573,10 @@ abstract class BaseAppDelay extends BaseObject implements Persistent
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_enable_action_date] from input: " .
var_export($v, true));
@@ -620,6 +624,10 @@ abstract class BaseAppDelay extends BaseObject implements Persistent
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_disable_action_date] from input: " .
var_export($v, true));
@@ -645,6 +653,10 @@ abstract class BaseAppDelay extends BaseObject implements Persistent
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_automatic_disabled_date] from input: " .
var_export($v, true));

View File

@@ -769,6 +769,10 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
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));
@@ -794,6 +798,10 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
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));
@@ -819,6 +827,10 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
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_task_due_date] from input: " .
var_export($v, true));
@@ -844,6 +856,10 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
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_finish_date] from input: " .
var_export($v, true));

View File

@@ -503,6 +503,10 @@ abstract class BaseAppDocument extends BaseObject implements Persistent
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_doc_create_date] from input: " .
var_export($v, true));
@@ -638,6 +642,10 @@ abstract class BaseAppDocument extends BaseObject implements Persistent
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_doc_status_date] from input: " .
var_export($v, true));

View File

@@ -279,6 +279,10 @@ abstract class BaseAppEvent extends BaseObject implements Persistent
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_evn_action_date] from input: " .
var_export($v, true));
@@ -326,6 +330,10 @@ abstract class BaseAppEvent extends BaseObject implements Persistent
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_evn_last_execution_date] from input: " .
var_export($v, true));

View File

@@ -245,6 +245,10 @@ abstract class BaseAppFolder extends BaseObject implements Persistent
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 [folder_create_date] from input: " .
var_export($v, true));
@@ -270,6 +274,10 @@ abstract class BaseAppFolder extends BaseObject implements Persistent
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 [folder_update_date] from input: " .
var_export($v, true));

View File

@@ -380,6 +380,10 @@ abstract class BaseAppHistory extends BaseObject implements Persistent
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 [history_date] from input: " .
var_export($v, true));

View File

@@ -581,6 +581,10 @@ abstract class BaseAppMessage extends BaseObject implements Persistent
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_msg_date] from input: " .
var_export($v, true));
@@ -716,6 +720,10 @@ abstract class BaseAppMessage extends BaseObject implements Persistent
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_msg_send_date] from input: " .
var_export($v, true));

View File

@@ -287,6 +287,10 @@ abstract class BaseAppNotes extends BaseObject implements Persistent
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 [note_date] from input: " .
var_export($v, true));

View File

@@ -163,6 +163,10 @@ abstract class BaseAppSolrQueue extends BaseObject implements Persistent
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_change_date] from input: " .
var_export($v, true));

View File

@@ -628,6 +628,10 @@ abstract class BaseApplication extends BaseObject implements Persistent
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_create_date] from input: " .
var_export($v, true));
@@ -653,6 +657,10 @@ abstract class BaseApplication extends BaseObject implements Persistent
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_init_date] from input: " .
var_export($v, true));
@@ -678,6 +686,10 @@ abstract class BaseApplication extends BaseObject implements Persistent
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_finish_date] from input: " .
var_export($v, true));
@@ -703,6 +715,10 @@ abstract class BaseApplication extends BaseObject implements Persistent
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_update_date] from input: " .
var_export($v, true));

View File

@@ -659,6 +659,10 @@ abstract class BaseBpmnProject extends BaseObject implements Persistent
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 [prj_create_date] from input: " .
var_export($v, true));
@@ -684,6 +688,10 @@ abstract class BaseBpmnProject extends BaseObject implements Persistent
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 [prj_update_date] from input: " .
var_export($v, true));

View File

@@ -257,6 +257,10 @@ abstract class BaseCalendarDefinition extends BaseObject implements Persistent
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 [calendar_create_date] from input: " .
var_export($v, true));
@@ -282,6 +286,10 @@ abstract class BaseCalendarDefinition extends BaseObject implements Persistent
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 [calendar_update_date] from input: " .
var_export($v, true));

View File

@@ -206,6 +206,10 @@ abstract class BaseCalendarHolidays extends BaseObject implements Persistent
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 [calendar_holiday_start] from input: " .
var_export($v, true));
@@ -231,6 +235,10 @@ abstract class BaseCalendarHolidays extends BaseObject implements Persistent
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 [calendar_holiday_end] from input: " .
var_export($v, true));

View File

@@ -736,6 +736,10 @@ abstract class BaseCaseScheduler extends BaseObject implements Persistent
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 [sch_time_next_run] from input: " .
var_export($v, true));
@@ -761,6 +765,10 @@ abstract class BaseCaseScheduler extends BaseObject implements Persistent
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 [sch_last_run_time] from input: " .
var_export($v, true));
@@ -874,6 +882,10 @@ abstract class BaseCaseScheduler extends BaseObject implements Persistent
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 [sch_start_time] from input: " .
var_export($v, true));
@@ -899,6 +911,10 @@ abstract class BaseCaseScheduler extends BaseObject implements Persistent
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 [sch_start_date] from input: " .
var_export($v, true));
@@ -1034,6 +1050,10 @@ abstract class BaseCaseScheduler extends BaseObject implements Persistent
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 [sch_end_date] from input: " .
var_export($v, true));

View File

@@ -340,6 +340,10 @@ abstract class BaseDashlet extends BaseObject implements Persistent
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 [das_create_date] from input: " .
var_export($v, true));
@@ -365,6 +369,10 @@ abstract class BaseDashlet extends BaseObject implements Persistent
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 [das_update_date] from input: " .
var_export($v, true));

View File

@@ -340,6 +340,10 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent
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 [das_ins_create_date] from input: " .
var_export($v, true));
@@ -365,6 +369,10 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent
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 [das_ins_update_date] from input: " .
var_export($v, true));

View File

@@ -331,6 +331,10 @@ abstract class BaseLogCasesScheduler extends BaseObject implements Persistent
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 [exec_date] from input: " .
var_export($v, true));

View File

@@ -318,6 +318,10 @@ abstract class BaseLoginLog extends BaseObject implements Persistent
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 [log_init_date] from input: " .
var_export($v, true));
@@ -343,6 +347,10 @@ abstract class BaseLoginLog extends BaseObject implements Persistent
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 [log_end_date] from input: " .
var_export($v, true));

View File

@@ -224,6 +224,10 @@ abstract class BaseOauthAccessTokens extends BaseObject implements Persistent
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 [expires] from input: " .
var_export($v, true));

View File

@@ -263,6 +263,10 @@ abstract class BaseOauthAuthorizationCodes extends BaseObject implements Persist
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 [expires] from input: " .
var_export($v, true));

View File

@@ -224,6 +224,10 @@ abstract class BaseOauthRefreshTokens extends BaseObject implements Persistent
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 [expires] from input: " .
var_export($v, true));

View File

@@ -4,14 +4,15 @@ require_once 'propel/om/BaseObject.php';
require_once 'propel/om/Persistent.php';
include_once 'propel/util/Criteria.php';
include_once 'classes/model/OutputDocumentPeer.php';
/**
* Base class that represents a row from the 'OUTPUT_DOCUMENT' table.
*
*
*
*
* @package workflow.classes.model.om
*/

View File

@@ -7,8 +7,8 @@ include_once 'classes/model/OutputDocument.php';
/**
* Base static class for performing query and update operations on the 'OUTPUT_DOCUMENT' table.
*
*
*
*
* @package workflow.classes.model.om
*/

View File

@@ -51,6 +51,12 @@ abstract class BasePmoauthUserAccessTokens extends BaseObject implements Persist
*/
protected $session_id;
/**
* The value for the session_name field.
* @var string
*/
protected $session_name;
/**
* Flag to prevent endless save loop, if this object is referenced
* by another object which falls in this transaction.
@@ -109,6 +115,17 @@ abstract class BasePmoauthUserAccessTokens extends BaseObject implements Persist
return $this->session_id;
}
/**
* Get the [session_name] column value.
*
* @return string
*/
public function getSessionName()
{
return $this->session_name;
}
/**
* Set the value of [access_token] column.
*
@@ -197,6 +214,28 @@ abstract class BasePmoauthUserAccessTokens extends BaseObject implements Persist
} // setSessionId()
/**
* Set the value of [session_name] column.
*
* @param string $v new value
* @return void
*/
public function setSessionName($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->session_name !== $v) {
$this->session_name = $v;
$this->modifiedColumns[] = PmoauthUserAccessTokensPeer::SESSION_NAME;
}
} // setSessionName()
/**
* Hydrates (populates) the object variables with values from the database resultset.
*
@@ -222,12 +261,14 @@ abstract class BasePmoauthUserAccessTokens extends BaseObject implements Persist
$this->session_id = $rs->getString($startcol + 3);
$this->session_name = $rs->getString($startcol + 4);
$this->resetModified();
$this->setNew(false);
// FIXME - using NUM_COLUMNS may be clearer.
return $startcol + 4; // 4 = PmoauthUserAccessTokensPeer::NUM_COLUMNS - PmoauthUserAccessTokensPeer::NUM_LAZY_LOAD_COLUMNS).
return $startcol + 5; // 5 = PmoauthUserAccessTokensPeer::NUM_COLUMNS - PmoauthUserAccessTokensPeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating PmoauthUserAccessTokens object", $e);
@@ -443,6 +484,9 @@ abstract class BasePmoauthUserAccessTokens extends BaseObject implements Persist
case 3:
return $this->getSessionId();
break;
case 4:
return $this->getSessionName();
break;
default:
return null;
break;
@@ -467,6 +511,7 @@ abstract class BasePmoauthUserAccessTokens extends BaseObject implements Persist
$keys[1] => $this->getRefreshToken(),
$keys[2] => $this->getUserId(),
$keys[3] => $this->getSessionId(),
$keys[4] => $this->getSessionName(),
);
return $result;
}
@@ -510,6 +555,9 @@ abstract class BasePmoauthUserAccessTokens extends BaseObject implements Persist
case 3:
$this->setSessionId($value);
break;
case 4:
$this->setSessionName($value);
break;
} // switch()
}
@@ -549,6 +597,10 @@ abstract class BasePmoauthUserAccessTokens extends BaseObject implements Persist
$this->setSessionId($arr[$keys[3]]);
}
if (array_key_exists($keys[4], $arr)) {
$this->setSessionName($arr[$keys[4]]);
}
}
/**
@@ -576,6 +628,10 @@ abstract class BasePmoauthUserAccessTokens extends BaseObject implements Persist
$criteria->add(PmoauthUserAccessTokensPeer::SESSION_ID, $this->session_id);
}
if ($this->isColumnModified(PmoauthUserAccessTokensPeer::SESSION_NAME)) {
$criteria->add(PmoauthUserAccessTokensPeer::SESSION_NAME, $this->session_name);
}
return $criteria;
}
@@ -636,6 +692,8 @@ abstract class BasePmoauthUserAccessTokens extends BaseObject implements Persist
$copyObj->setSessionId($this->session_id);
$copyObj->setSessionName($this->session_name);
$copyObj->setNew(true);

View File

@@ -25,7 +25,7 @@ abstract class BasePmoauthUserAccessTokensPeer
const CLASS_DEFAULT = 'classes.model.PmoauthUserAccessTokens';
/** The total number of columns. */
const NUM_COLUMNS = 4;
const NUM_COLUMNS = 5;
/** The number of lazy-loaded columns. */
const NUM_LAZY_LOAD_COLUMNS = 0;
@@ -43,6 +43,9 @@ abstract class BasePmoauthUserAccessTokensPeer
/** the column name for the SESSION_ID field */
const SESSION_ID = 'PMOAUTH_USER_ACCESS_TOKENS.SESSION_ID';
/** the column name for the SESSION_NAME field */
const SESSION_NAME = 'PMOAUTH_USER_ACCESS_TOKENS.SESSION_NAME';
/** The PHP to DB Name Mapping */
private static $phpNameMap = null;
@@ -54,10 +57,10 @@ abstract class BasePmoauthUserAccessTokensPeer
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
*/
private static $fieldNames = array (
BasePeer::TYPE_PHPNAME => array ('AccessToken', 'RefreshToken', 'UserId', 'SessionId', ),
BasePeer::TYPE_COLNAME => array (PmoauthUserAccessTokensPeer::ACCESS_TOKEN, PmoauthUserAccessTokensPeer::REFRESH_TOKEN, PmoauthUserAccessTokensPeer::USER_ID, PmoauthUserAccessTokensPeer::SESSION_ID, ),
BasePeer::TYPE_FIELDNAME => array ('ACCESS_TOKEN', 'REFRESH_TOKEN', 'USER_ID', 'SESSION_ID', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, )
BasePeer::TYPE_PHPNAME => array ('AccessToken', 'RefreshToken', 'UserId', 'SessionId', 'SessionName', ),
BasePeer::TYPE_COLNAME => array (PmoauthUserAccessTokensPeer::ACCESS_TOKEN, PmoauthUserAccessTokensPeer::REFRESH_TOKEN, PmoauthUserAccessTokensPeer::USER_ID, PmoauthUserAccessTokensPeer::SESSION_ID, PmoauthUserAccessTokensPeer::SESSION_NAME, ),
BasePeer::TYPE_FIELDNAME => array ('ACCESS_TOKEN', 'REFRESH_TOKEN', 'USER_ID', 'SESSION_ID', 'SESSION_NAME', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, )
);
/**
@@ -67,10 +70,10 @@ abstract class BasePmoauthUserAccessTokensPeer
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/
private static $fieldKeys = array (
BasePeer::TYPE_PHPNAME => array ('AccessToken' => 0, 'RefreshToken' => 1, 'UserId' => 2, 'SessionId' => 3, ),
BasePeer::TYPE_COLNAME => array (PmoauthUserAccessTokensPeer::ACCESS_TOKEN => 0, PmoauthUserAccessTokensPeer::REFRESH_TOKEN => 1, PmoauthUserAccessTokensPeer::USER_ID => 2, PmoauthUserAccessTokensPeer::SESSION_ID => 3, ),
BasePeer::TYPE_FIELDNAME => array ('ACCESS_TOKEN' => 0, 'REFRESH_TOKEN' => 1, 'USER_ID' => 2, 'SESSION_ID' => 3, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, )
BasePeer::TYPE_PHPNAME => array ('AccessToken' => 0, 'RefreshToken' => 1, 'UserId' => 2, 'SessionId' => 3, 'SessionName' => 4, ),
BasePeer::TYPE_COLNAME => array (PmoauthUserAccessTokensPeer::ACCESS_TOKEN => 0, PmoauthUserAccessTokensPeer::REFRESH_TOKEN => 1, PmoauthUserAccessTokensPeer::USER_ID => 2, PmoauthUserAccessTokensPeer::SESSION_ID => 3, PmoauthUserAccessTokensPeer::SESSION_NAME => 4, ),
BasePeer::TYPE_FIELDNAME => array ('ACCESS_TOKEN' => 0, 'REFRESH_TOKEN' => 1, 'USER_ID' => 2, 'SESSION_ID' => 3, 'SESSION_NAME' => 4, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, )
);
/**
@@ -179,6 +182,8 @@ abstract class BasePmoauthUserAccessTokensPeer
$criteria->addSelectColumn(PmoauthUserAccessTokensPeer::SESSION_ID);
$criteria->addSelectColumn(PmoauthUserAccessTokensPeer::SESSION_NAME);
}
const COUNT = 'COUNT(PMOAUTH_USER_ACCESS_TOKENS.ACCESS_TOKEN)';

View File

@@ -1038,6 +1038,10 @@ abstract class BaseProcess extends BaseObject implements Persistent
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 [pro_update_date] from input: " .
var_export($v, true));
@@ -1063,6 +1067,10 @@ abstract class BaseProcess extends BaseObject implements Persistent
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 [pro_create_date] from input: " .
var_export($v, true));

Some files were not shown because too many files have changed in this diff Show More