diff --git a/workflow/engine/classes/model/map/OauthClientsMapBuilder.php b/workflow/engine/classes/model/map/OauthClientsMapBuilder.php
index 9b0611829..869d1ff71 100644
--- a/workflow/engine/classes/model/map/OauthClientsMapBuilder.php
+++ b/workflow/engine/classes/model/map/OauthClientsMapBuilder.php
@@ -77,6 +77,8 @@ class OauthClientsMapBuilder
$tMap->addColumn('REDIRECT_URI', 'RedirectUri', 'string', CreoleTypes::VARCHAR, true, 2000);
+ $tMap->addColumn('USR_UID', 'UsrUid', 'string', CreoleTypes::VARCHAR, true, 32);
+
} // doBuild()
} // OauthClientsMapBuilder
diff --git a/workflow/engine/classes/model/om/BaseOauthClients.php b/workflow/engine/classes/model/om/BaseOauthClients.php
index fb515064f..653cdb8c8 100644
--- a/workflow/engine/classes/model/om/BaseOauthClients.php
+++ b/workflow/engine/classes/model/om/BaseOauthClients.php
@@ -63,6 +63,12 @@ abstract class BaseOauthClients extends BaseObject implements Persistent
*/
protected $redirect_uri;
+ /**
+ * The value for the usr_uid field.
+ * @var string
+ */
+ protected $usr_uid;
+
/**
* Flag to prevent endless save loop, if this object is referenced
* by another object which falls in this transaction.
@@ -143,6 +149,17 @@ abstract class BaseOauthClients extends BaseObject implements Persistent
return $this->redirect_uri;
}
+ /**
+ * Get the [usr_uid] column value.
+ *
+ * @return string
+ */
+ public function getUsrUid()
+ {
+
+ return $this->usr_uid;
+ }
+
/**
* Set the value of [client_id] column.
*
@@ -275,6 +292,28 @@ abstract class BaseOauthClients extends BaseObject implements Persistent
} // setRedirectUri()
+ /**
+ * 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) {
+ $this->usr_uid = $v;
+ $this->modifiedColumns[] = OauthClientsPeer::USR_UID;
+ }
+
+ } // setUsrUid()
+
/**
* Hydrates (populates) the object variables with values from the database resultset.
*
@@ -304,12 +343,14 @@ abstract class BaseOauthClients extends BaseObject implements Persistent
$this->redirect_uri = $rs->getString($startcol + 5);
+ $this->usr_uid = $rs->getString($startcol + 6);
+
$this->resetModified();
$this->setNew(false);
// FIXME - using NUM_COLUMNS may be clearer.
- return $startcol + 6; // 6 = OauthClientsPeer::NUM_COLUMNS - OauthClientsPeer::NUM_LAZY_LOAD_COLUMNS).
+ return $startcol + 7; // 7 = OauthClientsPeer::NUM_COLUMNS - OauthClientsPeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating OauthClients object", $e);
@@ -531,6 +572,9 @@ abstract class BaseOauthClients extends BaseObject implements Persistent
case 5:
return $this->getRedirectUri();
break;
+ case 6:
+ return $this->getUsrUid();
+ break;
default:
return null;
break;
@@ -557,6 +601,7 @@ abstract class BaseOauthClients extends BaseObject implements Persistent
$keys[3] => $this->getClientDescription(),
$keys[4] => $this->getClientWebsite(),
$keys[5] => $this->getRedirectUri(),
+ $keys[6] => $this->getUsrUid(),
);
return $result;
}
@@ -606,6 +651,9 @@ abstract class BaseOauthClients extends BaseObject implements Persistent
case 5:
$this->setRedirectUri($value);
break;
+ case 6:
+ $this->setUsrUid($value);
+ break;
} // switch()
}
@@ -653,6 +701,10 @@ abstract class BaseOauthClients extends BaseObject implements Persistent
$this->setRedirectUri($arr[$keys[5]]);
}
+ if (array_key_exists($keys[6], $arr)) {
+ $this->setUsrUid($arr[$keys[6]]);
+ }
+
}
/**
@@ -688,6 +740,10 @@ abstract class BaseOauthClients extends BaseObject implements Persistent
$criteria->add(OauthClientsPeer::REDIRECT_URI, $this->redirect_uri);
}
+ if ($this->isColumnModified(OauthClientsPeer::USR_UID)) {
+ $criteria->add(OauthClientsPeer::USR_UID, $this->usr_uid);
+ }
+
return $criteria;
}
@@ -752,6 +808,8 @@ abstract class BaseOauthClients extends BaseObject implements Persistent
$copyObj->setRedirectUri($this->redirect_uri);
+ $copyObj->setUsrUid($this->usr_uid);
+
$copyObj->setNew(true);
diff --git a/workflow/engine/classes/model/om/BaseOauthClientsPeer.php b/workflow/engine/classes/model/om/BaseOauthClientsPeer.php
index 712e2455a..e49c8f978 100644
--- a/workflow/engine/classes/model/om/BaseOauthClientsPeer.php
+++ b/workflow/engine/classes/model/om/BaseOauthClientsPeer.php
@@ -25,7 +25,7 @@ abstract class BaseOauthClientsPeer
const CLASS_DEFAULT = 'classes.model.OauthClients';
/** The total number of columns. */
- const NUM_COLUMNS = 6;
+ const NUM_COLUMNS = 7;
/** The number of lazy-loaded columns. */
const NUM_LAZY_LOAD_COLUMNS = 0;
@@ -49,6 +49,9 @@ abstract class BaseOauthClientsPeer
/** the column name for the REDIRECT_URI field */
const REDIRECT_URI = 'OAUTH_CLIENTS.REDIRECT_URI';
+ /** the column name for the USR_UID field */
+ const USR_UID = 'OAUTH_CLIENTS.USR_UID';
+
/** The PHP to DB Name Mapping */
private static $phpNameMap = null;
@@ -60,10 +63,10 @@ abstract class BaseOauthClientsPeer
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
*/
private static $fieldNames = array (
- BasePeer::TYPE_PHPNAME => array ('ClientId', 'ClientSecret', 'ClientName', 'ClientDescription', 'ClientWebsite', 'RedirectUri', ),
- BasePeer::TYPE_COLNAME => array (OauthClientsPeer::CLIENT_ID, OauthClientsPeer::CLIENT_SECRET, OauthClientsPeer::CLIENT_NAME, OauthClientsPeer::CLIENT_DESCRIPTION, OauthClientsPeer::CLIENT_WEBSITE, OauthClientsPeer::REDIRECT_URI, ),
- BasePeer::TYPE_FIELDNAME => array ('CLIENT_ID', 'CLIENT_SECRET', 'CLIENT_NAME', 'CLIENT_DESCRIPTION', 'CLIENT_WEBSITE', 'REDIRECT_URI', ),
- BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, )
+ BasePeer::TYPE_PHPNAME => array ('ClientId', 'ClientSecret', 'ClientName', 'ClientDescription', 'ClientWebsite', 'RedirectUri', 'UsrUid', ),
+ BasePeer::TYPE_COLNAME => array (OauthClientsPeer::CLIENT_ID, OauthClientsPeer::CLIENT_SECRET, OauthClientsPeer::CLIENT_NAME, OauthClientsPeer::CLIENT_DESCRIPTION, OauthClientsPeer::CLIENT_WEBSITE, OauthClientsPeer::REDIRECT_URI, OauthClientsPeer::USR_UID, ),
+ BasePeer::TYPE_FIELDNAME => array ('CLIENT_ID', 'CLIENT_SECRET', 'CLIENT_NAME', 'CLIENT_DESCRIPTION', 'CLIENT_WEBSITE', 'REDIRECT_URI', 'USR_UID', ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, )
);
/**
@@ -73,10 +76,10 @@ abstract class BaseOauthClientsPeer
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/
private static $fieldKeys = array (
- BasePeer::TYPE_PHPNAME => array ('ClientId' => 0, 'ClientSecret' => 1, 'ClientName' => 2, 'ClientDescription' => 3, 'ClientWebsite' => 4, 'RedirectUri' => 5, ),
- BasePeer::TYPE_COLNAME => array (OauthClientsPeer::CLIENT_ID => 0, OauthClientsPeer::CLIENT_SECRET => 1, OauthClientsPeer::CLIENT_NAME => 2, OauthClientsPeer::CLIENT_DESCRIPTION => 3, OauthClientsPeer::CLIENT_WEBSITE => 4, OauthClientsPeer::REDIRECT_URI => 5, ),
- BasePeer::TYPE_FIELDNAME => array ('CLIENT_ID' => 0, 'CLIENT_SECRET' => 1, 'CLIENT_NAME' => 2, 'CLIENT_DESCRIPTION' => 3, 'CLIENT_WEBSITE' => 4, 'REDIRECT_URI' => 5, ),
- BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, )
+ BasePeer::TYPE_PHPNAME => array ('ClientId' => 0, 'ClientSecret' => 1, 'ClientName' => 2, 'ClientDescription' => 3, 'ClientWebsite' => 4, 'RedirectUri' => 5, 'UsrUid' => 6, ),
+ BasePeer::TYPE_COLNAME => array (OauthClientsPeer::CLIENT_ID => 0, OauthClientsPeer::CLIENT_SECRET => 1, OauthClientsPeer::CLIENT_NAME => 2, OauthClientsPeer::CLIENT_DESCRIPTION => 3, OauthClientsPeer::CLIENT_WEBSITE => 4, OauthClientsPeer::REDIRECT_URI => 5, OauthClientsPeer::USR_UID => 6, ),
+ BasePeer::TYPE_FIELDNAME => array ('CLIENT_ID' => 0, 'CLIENT_SECRET' => 1, 'CLIENT_NAME' => 2, 'CLIENT_DESCRIPTION' => 3, 'CLIENT_WEBSITE' => 4, 'REDIRECT_URI' => 5, 'USR_UID' => 6, ),
+ BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, )
);
/**
@@ -189,6 +192,8 @@ abstract class BaseOauthClientsPeer
$criteria->addSelectColumn(OauthClientsPeer::REDIRECT_URI);
+ $criteria->addSelectColumn(OauthClientsPeer::USR_UID);
+
}
const COUNT = 'COUNT(OAUTH_CLIENTS.CLIENT_ID)';
diff --git a/workflow/engine/config/schema.xml b/workflow/engine/config/schema.xml
index 5f1843bdf..4dceb2bfa 100755
--- a/workflow/engine/config/schema.xml
+++ b/workflow/engine/config/schema.xml
@@ -3032,6 +3032,7 @@