Renaming table APP_FILES to PROCESS_FILES
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'classes/model/om/BaseAppFiles.php';
|
require_once 'classes/model/om/BaseProcessFiles.php';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Skeleton subclass for representing a row from the 'APP_FILES' table.
|
* Skeleton subclass for representing a row from the 'PROCESS_FILES' table.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
@@ -14,6 +14,6 @@ require_once 'classes/model/om/BaseAppFiles.php';
|
|||||||
*
|
*
|
||||||
* @package classes.model
|
* @package classes.model
|
||||||
*/
|
*/
|
||||||
class AppFiles extends BaseAppFiles {
|
class ProcessFiles extends BaseProcessFiles {
|
||||||
|
|
||||||
} // AppFiles
|
} // ProcessFiles
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// include base peer class
|
// include base peer class
|
||||||
require_once 'classes/model/om/BaseAppFilesPeer.php';
|
require_once 'classes/model/om/BaseProcessFilesPeer.php';
|
||||||
|
|
||||||
// include object class
|
// include object class
|
||||||
include_once 'classes/model/AppFiles.php';
|
include_once 'classes/model/ProcessFiles.php';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Skeleton subclass for performing query and update operations on the 'APP_FILES' table.
|
* Skeleton subclass for performing query and update operations on the 'PROCESS_FILES' table.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
@@ -18,6 +18,6 @@
|
|||||||
*
|
*
|
||||||
* @package classes.model
|
* @package classes.model
|
||||||
*/
|
*/
|
||||||
class AppFilesPeer extends BaseAppFilesPeer {
|
class ProcessFilesPeer extends BaseProcessFilesPeer {
|
||||||
|
|
||||||
} // AppFilesPeer
|
} // ProcessFilesPeer
|
||||||
@@ -5,7 +5,7 @@ include_once 'creole/CreoleTypes.php';
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class adds structure of 'APP_FILES' table to 'workflow' DatabaseMap object.
|
* This class adds structure of 'PROCESS_FILES' table to 'workflow' DatabaseMap object.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
@@ -16,13 +16,13 @@ include_once 'creole/CreoleTypes.php';
|
|||||||
*
|
*
|
||||||
* @package workflow.classes.model.map
|
* @package workflow.classes.model.map
|
||||||
*/
|
*/
|
||||||
class AppFilesMapBuilder
|
class ProcessFilesMapBuilder
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The (dot-path) name of this class
|
* The (dot-path) name of this class
|
||||||
*/
|
*/
|
||||||
const CLASS_NAME = 'classes.model.map.AppFilesMapBuilder';
|
const CLASS_NAME = 'classes.model.map.ProcessFilesMapBuilder';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The database map.
|
* The database map.
|
||||||
@@ -60,29 +60,29 @@ class AppFilesMapBuilder
|
|||||||
{
|
{
|
||||||
$this->dbMap = Propel::getDatabaseMap('workflow');
|
$this->dbMap = Propel::getDatabaseMap('workflow');
|
||||||
|
|
||||||
$tMap = $this->dbMap->addTable('APP_FILES');
|
$tMap = $this->dbMap->addTable('PROCESS_FILES');
|
||||||
$tMap->setPhpName('AppFiles');
|
$tMap->setPhpName('ProcessFiles');
|
||||||
|
|
||||||
$tMap->setUseIdGenerator(false);
|
$tMap->setUseIdGenerator(false);
|
||||||
|
|
||||||
$tMap->addPrimaryKey('APF_UID', 'ApfUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
$tMap->addPrimaryKey('PRF_UID', 'PrfUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||||
|
|
||||||
$tMap->addColumn('PRO_UID', 'ProUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
$tMap->addColumn('PRO_UID', 'ProUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||||
|
|
||||||
$tMap->addColumn('CREATE_USR_UID', 'CreateUsrUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
$tMap->addColumn('USR_UID', 'UsrUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||||
|
|
||||||
$tMap->addColumn('LAST_UPDATE_USR_UID', 'LastUpdateUsrUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
$tMap->addColumn('PRF_UPDATE_USR_UID', 'PrfUpdateUsrUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||||
|
|
||||||
$tMap->addColumn('APF_PATH', 'ApfPath', 'string', CreoleTypes::VARCHAR, true, 256);
|
$tMap->addColumn('PRF_PATH', 'PrfPath', 'string', CreoleTypes::VARCHAR, true, 256);
|
||||||
|
|
||||||
$tMap->addColumn('APF_TYPE', 'ApfType', 'string', CreoleTypes::VARCHAR, false, 32);
|
$tMap->addColumn('PRF_TYPE', 'PrfType', 'string', CreoleTypes::VARCHAR, false, 32);
|
||||||
|
|
||||||
$tMap->addColumn('APF_EDITABLE', 'ApfEditable', 'int', CreoleTypes::TINYINT, false, null);
|
$tMap->addColumn('PRF_EDITABLE', 'PrfEditable', 'int', CreoleTypes::TINYINT, false, null);
|
||||||
|
|
||||||
$tMap->addColumn('APF_CREATE_DATE', 'ApfCreateDate', 'int', CreoleTypes::TIMESTAMP, true, null);
|
$tMap->addColumn('PRF_CREATE_DATE', 'PrfCreateDate', 'int', CreoleTypes::TIMESTAMP, true, null);
|
||||||
|
|
||||||
$tMap->addColumn('APF_UPDATE_DATE', 'ApfUpdateDate', 'int', CreoleTypes::TIMESTAMP, false, null);
|
$tMap->addColumn('PRF_UPDATE_DATE', 'PrfUpdateDate', 'int', CreoleTypes::TIMESTAMP, false, null);
|
||||||
|
|
||||||
} // doBuild()
|
} // doBuild()
|
||||||
|
|
||||||
} // AppFilesMapBuilder
|
} // ProcessFilesMapBuilder
|
||||||
@@ -7,31 +7,31 @@ require_once 'propel/om/Persistent.php';
|
|||||||
|
|
||||||
include_once 'propel/util/Criteria.php';
|
include_once 'propel/util/Criteria.php';
|
||||||
|
|
||||||
include_once 'classes/model/AppFilesPeer.php';
|
include_once 'classes/model/ProcessFilesPeer.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class that represents a row from the 'APP_FILES' table.
|
* Base class that represents a row from the 'PROCESS_FILES' table.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @package workflow.classes.model.om
|
* @package workflow.classes.model.om
|
||||||
*/
|
*/
|
||||||
abstract class BaseAppFiles extends BaseObject implements Persistent
|
abstract class BaseProcessFiles extends BaseObject implements Persistent
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Peer class.
|
* The Peer class.
|
||||||
* Instance provides a convenient way of calling static methods on a class
|
* Instance provides a convenient way of calling static methods on a class
|
||||||
* that calling code may not be able to identify.
|
* that calling code may not be able to identify.
|
||||||
* @var AppFilesPeer
|
* @var ProcessFilesPeer
|
||||||
*/
|
*/
|
||||||
protected static $peer;
|
protected static $peer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the apf_uid field.
|
* The value for the prf_uid field.
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $apf_uid;
|
protected $prf_uid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the pro_uid field.
|
* The value for the pro_uid field.
|
||||||
@@ -40,46 +40,46 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
protected $pro_uid;
|
protected $pro_uid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the create_usr_uid field.
|
* The value for the usr_uid field.
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $create_usr_uid;
|
protected $usr_uid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the last_update_usr_uid field.
|
* The value for the prf_update_usr_uid field.
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $last_update_usr_uid;
|
protected $prf_update_usr_uid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the apf_path field.
|
* The value for the prf_path field.
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $apf_path = '';
|
protected $prf_path = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the apf_type field.
|
* The value for the prf_type field.
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $apf_type = '';
|
protected $prf_type = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the apf_editable field.
|
* The value for the prf_editable field.
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $apf_editable = 1;
|
protected $prf_editable = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the apf_create_date field.
|
* The value for the prf_create_date field.
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $apf_create_date;
|
protected $prf_create_date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the apf_update_date field.
|
* The value for the prf_update_date field.
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $apf_update_date;
|
protected $prf_update_date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flag to prevent endless save loop, if this object is referenced
|
* Flag to prevent endless save loop, if this object is referenced
|
||||||
@@ -96,14 +96,14 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
protected $alreadyInValidation = false;
|
protected $alreadyInValidation = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [apf_uid] column value.
|
* Get the [prf_uid] column value.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getApfUid()
|
public function getPrfUid()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->apf_uid;
|
return $this->prf_uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -118,82 +118,82 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [create_usr_uid] column value.
|
* Get the [usr_uid] column value.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getCreateUsrUid()
|
public function getUsrUid()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->create_usr_uid;
|
return $this->usr_uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [last_update_usr_uid] column value.
|
* Get the [prf_update_usr_uid] column value.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getLastUpdateUsrUid()
|
public function getPrfUpdateUsrUid()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->last_update_usr_uid;
|
return $this->prf_update_usr_uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [apf_path] column value.
|
* Get the [prf_path] column value.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getApfPath()
|
public function getPrfPath()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->apf_path;
|
return $this->prf_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [apf_type] column value.
|
* Get the [prf_type] column value.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getApfType()
|
public function getPrfType()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->apf_type;
|
return $this->prf_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [apf_editable] column value.
|
* Get the [prf_editable] column value.
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function getApfEditable()
|
public function getPrfEditable()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->apf_editable;
|
return $this->prf_editable;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [optionally formatted] [apf_create_date] column value.
|
* Get the [optionally formatted] [prf_create_date] column value.
|
||||||
*
|
*
|
||||||
* @param string $format The date/time format string (either date()-style or strftime()-style).
|
* @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.
|
* 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).
|
* @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.
|
* @throws PropelException - if unable to convert the date/time to timestamp.
|
||||||
*/
|
*/
|
||||||
public function getApfCreateDate($format = 'Y-m-d H:i:s')
|
public function getPrfCreateDate($format = 'Y-m-d H:i:s')
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($this->apf_create_date === null || $this->apf_create_date === '') {
|
if ($this->prf_create_date === null || $this->prf_create_date === '') {
|
||||||
return null;
|
return null;
|
||||||
} elseif (!is_int($this->apf_create_date)) {
|
} elseif (!is_int($this->prf_create_date)) {
|
||||||
// a non-timestamp value was set externally, so we convert it
|
// a non-timestamp value was set externally, so we convert it
|
||||||
$ts = strtotime($this->apf_create_date);
|
$ts = strtotime($this->prf_create_date);
|
||||||
if ($ts === -1 || $ts === false) {
|
if ($ts === -1 || $ts === false) {
|
||||||
throw new PropelException("Unable to parse value of [apf_create_date] as date/time value: " .
|
throw new PropelException("Unable to parse value of [prf_create_date] as date/time value: " .
|
||||||
var_export($this->apf_create_date, true));
|
var_export($this->prf_create_date, true));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ts = $this->apf_create_date;
|
$ts = $this->prf_create_date;
|
||||||
}
|
}
|
||||||
if ($format === null) {
|
if ($format === null) {
|
||||||
return $ts;
|
return $ts;
|
||||||
@@ -205,27 +205,27 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [optionally formatted] [apf_update_date] column value.
|
* Get the [optionally formatted] [prf_update_date] column value.
|
||||||
*
|
*
|
||||||
* @param string $format The date/time format string (either date()-style or strftime()-style).
|
* @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.
|
* 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).
|
* @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.
|
* @throws PropelException - if unable to convert the date/time to timestamp.
|
||||||
*/
|
*/
|
||||||
public function getApfUpdateDate($format = 'Y-m-d H:i:s')
|
public function getPrfUpdateDate($format = 'Y-m-d H:i:s')
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($this->apf_update_date === null || $this->apf_update_date === '') {
|
if ($this->prf_update_date === null || $this->prf_update_date === '') {
|
||||||
return null;
|
return null;
|
||||||
} elseif (!is_int($this->apf_update_date)) {
|
} elseif (!is_int($this->prf_update_date)) {
|
||||||
// a non-timestamp value was set externally, so we convert it
|
// a non-timestamp value was set externally, so we convert it
|
||||||
$ts = strtotime($this->apf_update_date);
|
$ts = strtotime($this->prf_update_date);
|
||||||
if ($ts === -1 || $ts === false) {
|
if ($ts === -1 || $ts === false) {
|
||||||
throw new PropelException("Unable to parse value of [apf_update_date] as date/time value: " .
|
throw new PropelException("Unable to parse value of [prf_update_date] as date/time value: " .
|
||||||
var_export($this->apf_update_date, true));
|
var_export($this->prf_update_date, true));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ts = $this->apf_update_date;
|
$ts = $this->prf_update_date;
|
||||||
}
|
}
|
||||||
if ($format === null) {
|
if ($format === null) {
|
||||||
return $ts;
|
return $ts;
|
||||||
@@ -237,12 +237,12 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [apf_uid] column.
|
* Set the value of [prf_uid] column.
|
||||||
*
|
*
|
||||||
* @param string $v new value
|
* @param string $v new value
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setApfUid($v)
|
public function setPrfUid($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
@@ -251,12 +251,12 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->apf_uid !== $v) {
|
if ($this->prf_uid !== $v) {
|
||||||
$this->apf_uid = $v;
|
$this->prf_uid = $v;
|
||||||
$this->modifiedColumns[] = AppFilesPeer::APF_UID;
|
$this->modifiedColumns[] = ProcessFilesPeer::PRF_UID;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setApfUid()
|
} // setPrfUid()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [pro_uid] column.
|
* Set the value of [pro_uid] column.
|
||||||
@@ -275,18 +275,18 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
|
|
||||||
if ($this->pro_uid !== $v) {
|
if ($this->pro_uid !== $v) {
|
||||||
$this->pro_uid = $v;
|
$this->pro_uid = $v;
|
||||||
$this->modifiedColumns[] = AppFilesPeer::PRO_UID;
|
$this->modifiedColumns[] = ProcessFilesPeer::PRO_UID;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setProUid()
|
} // setProUid()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [create_usr_uid] column.
|
* Set the value of [usr_uid] column.
|
||||||
*
|
*
|
||||||
* @param string $v new value
|
* @param string $v new value
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setCreateUsrUid($v)
|
public function setUsrUid($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
@@ -295,20 +295,20 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->create_usr_uid !== $v) {
|
if ($this->usr_uid !== $v) {
|
||||||
$this->create_usr_uid = $v;
|
$this->usr_uid = $v;
|
||||||
$this->modifiedColumns[] = AppFilesPeer::CREATE_USR_UID;
|
$this->modifiedColumns[] = ProcessFilesPeer::USR_UID;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setCreateUsrUid()
|
} // setUsrUid()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [last_update_usr_uid] column.
|
* Set the value of [prf_update_usr_uid] column.
|
||||||
*
|
*
|
||||||
* @param string $v new value
|
* @param string $v new value
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setLastUpdateUsrUid($v)
|
public function setPrfUpdateUsrUid($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
@@ -317,20 +317,20 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->last_update_usr_uid !== $v) {
|
if ($this->prf_update_usr_uid !== $v) {
|
||||||
$this->last_update_usr_uid = $v;
|
$this->prf_update_usr_uid = $v;
|
||||||
$this->modifiedColumns[] = AppFilesPeer::LAST_UPDATE_USR_UID;
|
$this->modifiedColumns[] = ProcessFilesPeer::PRF_UPDATE_USR_UID;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setLastUpdateUsrUid()
|
} // setPrfUpdateUsrUid()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [apf_path] column.
|
* Set the value of [prf_path] column.
|
||||||
*
|
*
|
||||||
* @param string $v new value
|
* @param string $v new value
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setApfPath($v)
|
public function setPrfPath($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
@@ -339,20 +339,20 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->apf_path !== $v || $v === '') {
|
if ($this->prf_path !== $v || $v === '') {
|
||||||
$this->apf_path = $v;
|
$this->prf_path = $v;
|
||||||
$this->modifiedColumns[] = AppFilesPeer::APF_PATH;
|
$this->modifiedColumns[] = ProcessFilesPeer::PRF_PATH;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setApfPath()
|
} // setPrfPath()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [apf_type] column.
|
* Set the value of [prf_type] column.
|
||||||
*
|
*
|
||||||
* @param string $v new value
|
* @param string $v new value
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setApfType($v)
|
public function setPrfType($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
@@ -361,20 +361,20 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->apf_type !== $v || $v === '') {
|
if ($this->prf_type !== $v || $v === '') {
|
||||||
$this->apf_type = $v;
|
$this->prf_type = $v;
|
||||||
$this->modifiedColumns[] = AppFilesPeer::APF_TYPE;
|
$this->modifiedColumns[] = ProcessFilesPeer::PRF_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setApfType()
|
} // setPrfType()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [apf_editable] column.
|
* Set the value of [prf_editable] column.
|
||||||
*
|
*
|
||||||
* @param int $v new value
|
* @param int $v new value
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setApfEditable($v)
|
public function setPrfEditable($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is integer,
|
// Since the native PHP type for this column is integer,
|
||||||
@@ -383,62 +383,62 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
$v = (int) $v;
|
$v = (int) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->apf_editable !== $v || $v === 1) {
|
if ($this->prf_editable !== $v || $v === 1) {
|
||||||
$this->apf_editable = $v;
|
$this->prf_editable = $v;
|
||||||
$this->modifiedColumns[] = AppFilesPeer::APF_EDITABLE;
|
$this->modifiedColumns[] = ProcessFilesPeer::PRF_EDITABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setApfEditable()
|
} // setPrfEditable()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [apf_create_date] column.
|
* Set the value of [prf_create_date] column.
|
||||||
*
|
*
|
||||||
* @param int $v new value
|
* @param int $v new value
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setApfCreateDate($v)
|
public function setPrfCreateDate($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($v !== null && !is_int($v)) {
|
if ($v !== null && !is_int($v)) {
|
||||||
$ts = strtotime($v);
|
$ts = strtotime($v);
|
||||||
if ($ts === -1 || $ts === false) {
|
if ($ts === -1 || $ts === false) {
|
||||||
throw new PropelException("Unable to parse date/time value for [apf_create_date] from input: " .
|
throw new PropelException("Unable to parse date/time value for [prf_create_date] from input: " .
|
||||||
var_export($v, true));
|
var_export($v, true));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ts = $v;
|
$ts = $v;
|
||||||
}
|
}
|
||||||
if ($this->apf_create_date !== $ts) {
|
if ($this->prf_create_date !== $ts) {
|
||||||
$this->apf_create_date = $ts;
|
$this->prf_create_date = $ts;
|
||||||
$this->modifiedColumns[] = AppFilesPeer::APF_CREATE_DATE;
|
$this->modifiedColumns[] = ProcessFilesPeer::PRF_CREATE_DATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setApfCreateDate()
|
} // setPrfCreateDate()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [apf_update_date] column.
|
* Set the value of [prf_update_date] column.
|
||||||
*
|
*
|
||||||
* @param int $v new value
|
* @param int $v new value
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setApfUpdateDate($v)
|
public function setPrfUpdateDate($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($v !== null && !is_int($v)) {
|
if ($v !== null && !is_int($v)) {
|
||||||
$ts = strtotime($v);
|
$ts = strtotime($v);
|
||||||
if ($ts === -1 || $ts === false) {
|
if ($ts === -1 || $ts === false) {
|
||||||
throw new PropelException("Unable to parse date/time value for [apf_update_date] from input: " .
|
throw new PropelException("Unable to parse date/time value for [prf_update_date] from input: " .
|
||||||
var_export($v, true));
|
var_export($v, true));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ts = $v;
|
$ts = $v;
|
||||||
}
|
}
|
||||||
if ($this->apf_update_date !== $ts) {
|
if ($this->prf_update_date !== $ts) {
|
||||||
$this->apf_update_date = $ts;
|
$this->prf_update_date = $ts;
|
||||||
$this->modifiedColumns[] = AppFilesPeer::APF_UPDATE_DATE;
|
$this->modifiedColumns[] = ProcessFilesPeer::PRF_UPDATE_DATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setApfUpdateDate()
|
} // setPrfUpdateDate()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hydrates (populates) the object variables with values from the database resultset.
|
* Hydrates (populates) the object variables with values from the database resultset.
|
||||||
@@ -457,33 +457,33 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$this->apf_uid = $rs->getString($startcol + 0);
|
$this->prf_uid = $rs->getString($startcol + 0);
|
||||||
|
|
||||||
$this->pro_uid = $rs->getString($startcol + 1);
|
$this->pro_uid = $rs->getString($startcol + 1);
|
||||||
|
|
||||||
$this->create_usr_uid = $rs->getString($startcol + 2);
|
$this->usr_uid = $rs->getString($startcol + 2);
|
||||||
|
|
||||||
$this->last_update_usr_uid = $rs->getString($startcol + 3);
|
$this->prf_update_usr_uid = $rs->getString($startcol + 3);
|
||||||
|
|
||||||
$this->apf_path = $rs->getString($startcol + 4);
|
$this->prf_path = $rs->getString($startcol + 4);
|
||||||
|
|
||||||
$this->apf_type = $rs->getString($startcol + 5);
|
$this->prf_type = $rs->getString($startcol + 5);
|
||||||
|
|
||||||
$this->apf_editable = $rs->getInt($startcol + 6);
|
$this->prf_editable = $rs->getInt($startcol + 6);
|
||||||
|
|
||||||
$this->apf_create_date = $rs->getTimestamp($startcol + 7, null);
|
$this->prf_create_date = $rs->getTimestamp($startcol + 7, null);
|
||||||
|
|
||||||
$this->apf_update_date = $rs->getTimestamp($startcol + 8, null);
|
$this->prf_update_date = $rs->getTimestamp($startcol + 8, null);
|
||||||
|
|
||||||
$this->resetModified();
|
$this->resetModified();
|
||||||
|
|
||||||
$this->setNew(false);
|
$this->setNew(false);
|
||||||
|
|
||||||
// FIXME - using NUM_COLUMNS may be clearer.
|
// FIXME - using NUM_COLUMNS may be clearer.
|
||||||
return $startcol + 9; // 9 = AppFilesPeer::NUM_COLUMNS - AppFilesPeer::NUM_LAZY_LOAD_COLUMNS).
|
return $startcol + 9; // 9 = ProcessFilesPeer::NUM_COLUMNS - ProcessFilesPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new PropelException("Error populating AppFiles object", $e);
|
throw new PropelException("Error populating ProcessFiles object", $e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -503,12 +503,12 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($con === null) {
|
if ($con === null) {
|
||||||
$con = Propel::getConnection(AppFilesPeer::DATABASE_NAME);
|
$con = Propel::getConnection(ProcessFilesPeer::DATABASE_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$con->begin();
|
$con->begin();
|
||||||
AppFilesPeer::doDelete($this, $con);
|
ProcessFilesPeer::doDelete($this, $con);
|
||||||
$this->setDeleted(true);
|
$this->setDeleted(true);
|
||||||
$con->commit();
|
$con->commit();
|
||||||
} catch (PropelException $e) {
|
} catch (PropelException $e) {
|
||||||
@@ -534,7 +534,7 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($con === null) {
|
if ($con === null) {
|
||||||
$con = Propel::getConnection(AppFilesPeer::DATABASE_NAME);
|
$con = Propel::getConnection(ProcessFilesPeer::DATABASE_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -569,14 +569,14 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
// If this object has been modified, then save it to the database.
|
// If this object has been modified, then save it to the database.
|
||||||
if ($this->isModified()) {
|
if ($this->isModified()) {
|
||||||
if ($this->isNew()) {
|
if ($this->isNew()) {
|
||||||
$pk = AppFilesPeer::doInsert($this, $con);
|
$pk = ProcessFilesPeer::doInsert($this, $con);
|
||||||
$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
|
$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
|
||||||
// should always be true here (even though technically
|
// should always be true here (even though technically
|
||||||
// BasePeer::doInsert() can insert multiple rows).
|
// BasePeer::doInsert() can insert multiple rows).
|
||||||
|
|
||||||
$this->setNew(false);
|
$this->setNew(false);
|
||||||
} else {
|
} else {
|
||||||
$affectedRows += AppFilesPeer::doUpdate($this, $con);
|
$affectedRows += ProcessFilesPeer::doUpdate($this, $con);
|
||||||
}
|
}
|
||||||
$this->resetModified(); // [HL] After being saved an object is no longer 'modified'
|
$this->resetModified(); // [HL] After being saved an object is no longer 'modified'
|
||||||
}
|
}
|
||||||
@@ -647,7 +647,7 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
$failureMap = array();
|
$failureMap = array();
|
||||||
|
|
||||||
|
|
||||||
if (($retval = AppFilesPeer::doValidate($this, $columns)) !== true) {
|
if (($retval = ProcessFilesPeer::doValidate($this, $columns)) !== true) {
|
||||||
$failureMap = array_merge($failureMap, $retval);
|
$failureMap = array_merge($failureMap, $retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -670,7 +670,7 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
|
public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
|
||||||
{
|
{
|
||||||
$pos = AppFilesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
|
$pos = ProcessFilesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
|
||||||
return $this->getByPosition($pos);
|
return $this->getByPosition($pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -685,31 +685,31 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
{
|
{
|
||||||
switch($pos) {
|
switch($pos) {
|
||||||
case 0:
|
case 0:
|
||||||
return $this->getApfUid();
|
return $this->getPrfUid();
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
return $this->getProUid();
|
return $this->getProUid();
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
return $this->getCreateUsrUid();
|
return $this->getUsrUid();
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
return $this->getLastUpdateUsrUid();
|
return $this->getPrfUpdateUsrUid();
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
return $this->getApfPath();
|
return $this->getPrfPath();
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
return $this->getApfType();
|
return $this->getPrfType();
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
return $this->getApfEditable();
|
return $this->getPrfEditable();
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
return $this->getApfCreateDate();
|
return $this->getPrfCreateDate();
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
return $this->getApfUpdateDate();
|
return $this->getPrfUpdateDate();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
@@ -729,17 +729,17 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function toArray($keyType = BasePeer::TYPE_PHPNAME)
|
public function toArray($keyType = BasePeer::TYPE_PHPNAME)
|
||||||
{
|
{
|
||||||
$keys = AppFilesPeer::getFieldNames($keyType);
|
$keys = ProcessFilesPeer::getFieldNames($keyType);
|
||||||
$result = array(
|
$result = array(
|
||||||
$keys[0] => $this->getApfUid(),
|
$keys[0] => $this->getPrfUid(),
|
||||||
$keys[1] => $this->getProUid(),
|
$keys[1] => $this->getProUid(),
|
||||||
$keys[2] => $this->getCreateUsrUid(),
|
$keys[2] => $this->getUsrUid(),
|
||||||
$keys[3] => $this->getLastUpdateUsrUid(),
|
$keys[3] => $this->getPrfUpdateUsrUid(),
|
||||||
$keys[4] => $this->getApfPath(),
|
$keys[4] => $this->getPrfPath(),
|
||||||
$keys[5] => $this->getApfType(),
|
$keys[5] => $this->getPrfType(),
|
||||||
$keys[6] => $this->getApfEditable(),
|
$keys[6] => $this->getPrfEditable(),
|
||||||
$keys[7] => $this->getApfCreateDate(),
|
$keys[7] => $this->getPrfCreateDate(),
|
||||||
$keys[8] => $this->getApfUpdateDate(),
|
$keys[8] => $this->getPrfUpdateDate(),
|
||||||
);
|
);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
@@ -756,7 +756,7 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
|
public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
|
||||||
{
|
{
|
||||||
$pos = AppFilesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
|
$pos = ProcessFilesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
|
||||||
return $this->setByPosition($pos, $value);
|
return $this->setByPosition($pos, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -772,31 +772,31 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
{
|
{
|
||||||
switch($pos) {
|
switch($pos) {
|
||||||
case 0:
|
case 0:
|
||||||
$this->setApfUid($value);
|
$this->setPrfUid($value);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
$this->setProUid($value);
|
$this->setProUid($value);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
$this->setCreateUsrUid($value);
|
$this->setUsrUid($value);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
$this->setLastUpdateUsrUid($value);
|
$this->setPrfUpdateUsrUid($value);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
$this->setApfPath($value);
|
$this->setPrfPath($value);
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
$this->setApfType($value);
|
$this->setPrfType($value);
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
$this->setApfEditable($value);
|
$this->setPrfEditable($value);
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
$this->setApfCreateDate($value);
|
$this->setPrfCreateDate($value);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
$this->setApfUpdateDate($value);
|
$this->setPrfUpdateDate($value);
|
||||||
break;
|
break;
|
||||||
} // switch()
|
} // switch()
|
||||||
}
|
}
|
||||||
@@ -819,10 +819,10 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
|
public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
|
||||||
{
|
{
|
||||||
$keys = AppFilesPeer::getFieldNames($keyType);
|
$keys = ProcessFilesPeer::getFieldNames($keyType);
|
||||||
|
|
||||||
if (array_key_exists($keys[0], $arr)) {
|
if (array_key_exists($keys[0], $arr)) {
|
||||||
$this->setApfUid($arr[$keys[0]]);
|
$this->setPrfUid($arr[$keys[0]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists($keys[1], $arr)) {
|
if (array_key_exists($keys[1], $arr)) {
|
||||||
@@ -830,31 +830,31 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists($keys[2], $arr)) {
|
if (array_key_exists($keys[2], $arr)) {
|
||||||
$this->setCreateUsrUid($arr[$keys[2]]);
|
$this->setUsrUid($arr[$keys[2]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists($keys[3], $arr)) {
|
if (array_key_exists($keys[3], $arr)) {
|
||||||
$this->setLastUpdateUsrUid($arr[$keys[3]]);
|
$this->setPrfUpdateUsrUid($arr[$keys[3]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists($keys[4], $arr)) {
|
if (array_key_exists($keys[4], $arr)) {
|
||||||
$this->setApfPath($arr[$keys[4]]);
|
$this->setPrfPath($arr[$keys[4]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists($keys[5], $arr)) {
|
if (array_key_exists($keys[5], $arr)) {
|
||||||
$this->setApfType($arr[$keys[5]]);
|
$this->setPrfType($arr[$keys[5]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists($keys[6], $arr)) {
|
if (array_key_exists($keys[6], $arr)) {
|
||||||
$this->setApfEditable($arr[$keys[6]]);
|
$this->setPrfEditable($arr[$keys[6]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists($keys[7], $arr)) {
|
if (array_key_exists($keys[7], $arr)) {
|
||||||
$this->setApfCreateDate($arr[$keys[7]]);
|
$this->setPrfCreateDate($arr[$keys[7]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists($keys[8], $arr)) {
|
if (array_key_exists($keys[8], $arr)) {
|
||||||
$this->setApfUpdateDate($arr[$keys[8]]);
|
$this->setPrfUpdateDate($arr[$keys[8]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -866,42 +866,42 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function buildCriteria()
|
public function buildCriteria()
|
||||||
{
|
{
|
||||||
$criteria = new Criteria(AppFilesPeer::DATABASE_NAME);
|
$criteria = new Criteria(ProcessFilesPeer::DATABASE_NAME);
|
||||||
|
|
||||||
if ($this->isColumnModified(AppFilesPeer::APF_UID)) {
|
if ($this->isColumnModified(ProcessFilesPeer::PRF_UID)) {
|
||||||
$criteria->add(AppFilesPeer::APF_UID, $this->apf_uid);
|
$criteria->add(ProcessFilesPeer::PRF_UID, $this->prf_uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified(AppFilesPeer::PRO_UID)) {
|
if ($this->isColumnModified(ProcessFilesPeer::PRO_UID)) {
|
||||||
$criteria->add(AppFilesPeer::PRO_UID, $this->pro_uid);
|
$criteria->add(ProcessFilesPeer::PRO_UID, $this->pro_uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified(AppFilesPeer::CREATE_USR_UID)) {
|
if ($this->isColumnModified(ProcessFilesPeer::USR_UID)) {
|
||||||
$criteria->add(AppFilesPeer::CREATE_USR_UID, $this->create_usr_uid);
|
$criteria->add(ProcessFilesPeer::USR_UID, $this->usr_uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified(AppFilesPeer::LAST_UPDATE_USR_UID)) {
|
if ($this->isColumnModified(ProcessFilesPeer::PRF_UPDATE_USR_UID)) {
|
||||||
$criteria->add(AppFilesPeer::LAST_UPDATE_USR_UID, $this->last_update_usr_uid);
|
$criteria->add(ProcessFilesPeer::PRF_UPDATE_USR_UID, $this->prf_update_usr_uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified(AppFilesPeer::APF_PATH)) {
|
if ($this->isColumnModified(ProcessFilesPeer::PRF_PATH)) {
|
||||||
$criteria->add(AppFilesPeer::APF_PATH, $this->apf_path);
|
$criteria->add(ProcessFilesPeer::PRF_PATH, $this->prf_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified(AppFilesPeer::APF_TYPE)) {
|
if ($this->isColumnModified(ProcessFilesPeer::PRF_TYPE)) {
|
||||||
$criteria->add(AppFilesPeer::APF_TYPE, $this->apf_type);
|
$criteria->add(ProcessFilesPeer::PRF_TYPE, $this->prf_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified(AppFilesPeer::APF_EDITABLE)) {
|
if ($this->isColumnModified(ProcessFilesPeer::PRF_EDITABLE)) {
|
||||||
$criteria->add(AppFilesPeer::APF_EDITABLE, $this->apf_editable);
|
$criteria->add(ProcessFilesPeer::PRF_EDITABLE, $this->prf_editable);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified(AppFilesPeer::APF_CREATE_DATE)) {
|
if ($this->isColumnModified(ProcessFilesPeer::PRF_CREATE_DATE)) {
|
||||||
$criteria->add(AppFilesPeer::APF_CREATE_DATE, $this->apf_create_date);
|
$criteria->add(ProcessFilesPeer::PRF_CREATE_DATE, $this->prf_create_date);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified(AppFilesPeer::APF_UPDATE_DATE)) {
|
if ($this->isColumnModified(ProcessFilesPeer::PRF_UPDATE_DATE)) {
|
||||||
$criteria->add(AppFilesPeer::APF_UPDATE_DATE, $this->apf_update_date);
|
$criteria->add(ProcessFilesPeer::PRF_UPDATE_DATE, $this->prf_update_date);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -918,9 +918,9 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function buildPkeyCriteria()
|
public function buildPkeyCriteria()
|
||||||
{
|
{
|
||||||
$criteria = new Criteria(AppFilesPeer::DATABASE_NAME);
|
$criteria = new Criteria(ProcessFilesPeer::DATABASE_NAME);
|
||||||
|
|
||||||
$criteria->add(AppFilesPeer::APF_UID, $this->apf_uid);
|
$criteria->add(ProcessFilesPeer::PRF_UID, $this->prf_uid);
|
||||||
|
|
||||||
return $criteria;
|
return $criteria;
|
||||||
}
|
}
|
||||||
@@ -931,18 +931,18 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getPrimaryKey()
|
public function getPrimaryKey()
|
||||||
{
|
{
|
||||||
return $this->getApfUid();
|
return $this->getPrfUid();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generic method to set the primary key (apf_uid column).
|
* Generic method to set the primary key (prf_uid column).
|
||||||
*
|
*
|
||||||
* @param string $key Primary key.
|
* @param string $key Primary key.
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setPrimaryKey($key)
|
public function setPrimaryKey($key)
|
||||||
{
|
{
|
||||||
$this->setApfUid($key);
|
$this->setPrfUid($key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -951,7 +951,7 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
* If desired, this method can also make copies of all associated (fkey referrers)
|
* If desired, this method can also make copies of all associated (fkey referrers)
|
||||||
* objects.
|
* objects.
|
||||||
*
|
*
|
||||||
* @param object $copyObj An object of AppFiles (or compatible) type.
|
* @param object $copyObj An object of ProcessFiles (or compatible) type.
|
||||||
* @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
|
* @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
|
||||||
* @throws PropelException
|
* @throws PropelException
|
||||||
*/
|
*/
|
||||||
@@ -960,24 +960,24 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$copyObj->setProUid($this->pro_uid);
|
$copyObj->setProUid($this->pro_uid);
|
||||||
|
|
||||||
$copyObj->setCreateUsrUid($this->create_usr_uid);
|
$copyObj->setUsrUid($this->usr_uid);
|
||||||
|
|
||||||
$copyObj->setLastUpdateUsrUid($this->last_update_usr_uid);
|
$copyObj->setPrfUpdateUsrUid($this->prf_update_usr_uid);
|
||||||
|
|
||||||
$copyObj->setApfPath($this->apf_path);
|
$copyObj->setPrfPath($this->prf_path);
|
||||||
|
|
||||||
$copyObj->setApfType($this->apf_type);
|
$copyObj->setPrfType($this->prf_type);
|
||||||
|
|
||||||
$copyObj->setApfEditable($this->apf_editable);
|
$copyObj->setPrfEditable($this->prf_editable);
|
||||||
|
|
||||||
$copyObj->setApfCreateDate($this->apf_create_date);
|
$copyObj->setPrfCreateDate($this->prf_create_date);
|
||||||
|
|
||||||
$copyObj->setApfUpdateDate($this->apf_update_date);
|
$copyObj->setPrfUpdateDate($this->prf_update_date);
|
||||||
|
|
||||||
|
|
||||||
$copyObj->setNew(true);
|
$copyObj->setNew(true);
|
||||||
|
|
||||||
$copyObj->setApfUid(NULL); // this is a pkey column, so set to default value
|
$copyObj->setPrfUid(NULL); // this is a pkey column, so set to default value
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -990,7 +990,7 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
* objects.
|
* objects.
|
||||||
*
|
*
|
||||||
* @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
|
* @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
|
||||||
* @return AppFiles Clone of current object.
|
* @return ProcessFiles Clone of current object.
|
||||||
* @throws PropelException
|
* @throws PropelException
|
||||||
*/
|
*/
|
||||||
public function copy($deepCopy = false)
|
public function copy($deepCopy = false)
|
||||||
@@ -1009,12 +1009,12 @@ abstract class BaseAppFiles extends BaseObject implements Persistent
|
|||||||
* same instance for all member of this class. The method could therefore
|
* same instance for all member of this class. The method could therefore
|
||||||
* be static, but this would prevent one from overriding the behavior.
|
* be static, but this would prevent one from overriding the behavior.
|
||||||
*
|
*
|
||||||
* @return AppFilesPeer
|
* @return ProcessFilesPeer
|
||||||
*/
|
*/
|
||||||
public function getPeer()
|
public function getPeer()
|
||||||
{
|
{
|
||||||
if (self::$peer === null) {
|
if (self::$peer === null) {
|
||||||
self::$peer = new AppFilesPeer();
|
self::$peer = new ProcessFilesPeer();
|
||||||
}
|
}
|
||||||
return self::$peer;
|
return self::$peer;
|
||||||
}
|
}
|
||||||
@@ -2,27 +2,27 @@
|
|||||||
|
|
||||||
require_once 'propel/util/BasePeer.php';
|
require_once 'propel/util/BasePeer.php';
|
||||||
// The object class -- needed for instanceof checks in this class.
|
// The object class -- needed for instanceof checks in this class.
|
||||||
// actual class may be a subclass -- as returned by AppFilesPeer::getOMClass()
|
// actual class may be a subclass -- as returned by ProcessFilesPeer::getOMClass()
|
||||||
include_once 'classes/model/AppFiles.php';
|
include_once 'classes/model/ProcessFiles.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base static class for performing query and update operations on the 'APP_FILES' table.
|
* Base static class for performing query and update operations on the 'PROCESS_FILES' table.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @package workflow.classes.model.om
|
* @package workflow.classes.model.om
|
||||||
*/
|
*/
|
||||||
abstract class BaseAppFilesPeer
|
abstract class BaseProcessFilesPeer
|
||||||
{
|
{
|
||||||
|
|
||||||
/** the default database name for this class */
|
/** the default database name for this class */
|
||||||
const DATABASE_NAME = 'workflow';
|
const DATABASE_NAME = 'workflow';
|
||||||
|
|
||||||
/** the table name for this class */
|
/** the table name for this class */
|
||||||
const TABLE_NAME = 'APP_FILES';
|
const TABLE_NAME = 'PROCESS_FILES';
|
||||||
|
|
||||||
/** A class that can be returned by this peer. */
|
/** A class that can be returned by this peer. */
|
||||||
const CLASS_DEFAULT = 'classes.model.AppFiles';
|
const CLASS_DEFAULT = 'classes.model.ProcessFiles';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/** The total number of columns. */
|
||||||
const NUM_COLUMNS = 9;
|
const NUM_COLUMNS = 9;
|
||||||
@@ -31,32 +31,32 @@ abstract class BaseAppFilesPeer
|
|||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
|
|
||||||
|
|
||||||
/** the column name for the APF_UID field */
|
/** the column name for the PRF_UID field */
|
||||||
const APF_UID = 'APP_FILES.APF_UID';
|
const PRF_UID = 'PROCESS_FILES.PRF_UID';
|
||||||
|
|
||||||
/** the column name for the PRO_UID field */
|
/** the column name for the PRO_UID field */
|
||||||
const PRO_UID = 'APP_FILES.PRO_UID';
|
const PRO_UID = 'PROCESS_FILES.PRO_UID';
|
||||||
|
|
||||||
/** the column name for the CREATE_USR_UID field */
|
/** the column name for the USR_UID field */
|
||||||
const CREATE_USR_UID = 'APP_FILES.CREATE_USR_UID';
|
const USR_UID = 'PROCESS_FILES.USR_UID';
|
||||||
|
|
||||||
/** the column name for the LAST_UPDATE_USR_UID field */
|
/** the column name for the PRF_UPDATE_USR_UID field */
|
||||||
const LAST_UPDATE_USR_UID = 'APP_FILES.LAST_UPDATE_USR_UID';
|
const PRF_UPDATE_USR_UID = 'PROCESS_FILES.PRF_UPDATE_USR_UID';
|
||||||
|
|
||||||
/** the column name for the APF_PATH field */
|
/** the column name for the PRF_PATH field */
|
||||||
const APF_PATH = 'APP_FILES.APF_PATH';
|
const PRF_PATH = 'PROCESS_FILES.PRF_PATH';
|
||||||
|
|
||||||
/** the column name for the APF_TYPE field */
|
/** the column name for the PRF_TYPE field */
|
||||||
const APF_TYPE = 'APP_FILES.APF_TYPE';
|
const PRF_TYPE = 'PROCESS_FILES.PRF_TYPE';
|
||||||
|
|
||||||
/** the column name for the APF_EDITABLE field */
|
/** the column name for the PRF_EDITABLE field */
|
||||||
const APF_EDITABLE = 'APP_FILES.APF_EDITABLE';
|
const PRF_EDITABLE = 'PROCESS_FILES.PRF_EDITABLE';
|
||||||
|
|
||||||
/** the column name for the APF_CREATE_DATE field */
|
/** the column name for the PRF_CREATE_DATE field */
|
||||||
const APF_CREATE_DATE = 'APP_FILES.APF_CREATE_DATE';
|
const PRF_CREATE_DATE = 'PROCESS_FILES.PRF_CREATE_DATE';
|
||||||
|
|
||||||
/** the column name for the APF_UPDATE_DATE field */
|
/** the column name for the PRF_UPDATE_DATE field */
|
||||||
const APF_UPDATE_DATE = 'APP_FILES.APF_UPDATE_DATE';
|
const PRF_UPDATE_DATE = 'PROCESS_FILES.PRF_UPDATE_DATE';
|
||||||
|
|
||||||
/** The PHP to DB Name Mapping */
|
/** The PHP to DB Name Mapping */
|
||||||
private static $phpNameMap = null;
|
private static $phpNameMap = null;
|
||||||
@@ -69,9 +69,9 @@ abstract class BaseAppFilesPeer
|
|||||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||||
*/
|
*/
|
||||||
private static $fieldNames = array (
|
private static $fieldNames = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('ApfUid', 'ProUid', 'CreateUsrUid', 'LastUpdateUsrUid', 'ApfPath', 'ApfType', 'ApfEditable', 'ApfCreateDate', 'ApfUpdateDate', ),
|
BasePeer::TYPE_PHPNAME => array ('PrfUid', 'ProUid', 'UsrUid', 'PrfUpdateUsrUid', 'PrfPath', 'PrfType', 'PrfEditable', 'PrfCreateDate', 'PrfUpdateDate', ),
|
||||||
BasePeer::TYPE_COLNAME => array (AppFilesPeer::APF_UID, AppFilesPeer::PRO_UID, AppFilesPeer::CREATE_USR_UID, AppFilesPeer::LAST_UPDATE_USR_UID, AppFilesPeer::APF_PATH, AppFilesPeer::APF_TYPE, AppFilesPeer::APF_EDITABLE, AppFilesPeer::APF_CREATE_DATE, AppFilesPeer::APF_UPDATE_DATE, ),
|
BasePeer::TYPE_COLNAME => array (ProcessFilesPeer::PRF_UID, ProcessFilesPeer::PRO_UID, ProcessFilesPeer::USR_UID, ProcessFilesPeer::PRF_UPDATE_USR_UID, ProcessFilesPeer::PRF_PATH, ProcessFilesPeer::PRF_TYPE, ProcessFilesPeer::PRF_EDITABLE, ProcessFilesPeer::PRF_CREATE_DATE, ProcessFilesPeer::PRF_UPDATE_DATE, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('APF_UID', 'PRO_UID', 'CREATE_USR_UID', 'LAST_UPDATE_USR_UID', 'APF_PATH', 'APF_TYPE', 'APF_EDITABLE', 'APF_CREATE_DATE', 'APF_UPDATE_DATE', ),
|
BasePeer::TYPE_FIELDNAME => array ('PRF_UID', 'PRO_UID', 'USR_UID', 'PRF_UPDATE_USR_UID', 'PRF_PATH', 'PRF_TYPE', 'PRF_EDITABLE', 'PRF_CREATE_DATE', 'PRF_UPDATE_DATE', ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, )
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -82,9 +82,9 @@ abstract class BaseAppFilesPeer
|
|||||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
*/
|
*/
|
||||||
private static $fieldKeys = array (
|
private static $fieldKeys = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('ApfUid' => 0, 'ProUid' => 1, 'CreateUsrUid' => 2, 'LastUpdateUsrUid' => 3, 'ApfPath' => 4, 'ApfType' => 5, 'ApfEditable' => 6, 'ApfCreateDate' => 7, 'ApfUpdateDate' => 8, ),
|
BasePeer::TYPE_PHPNAME => array ('PrfUid' => 0, 'ProUid' => 1, 'UsrUid' => 2, 'PrfUpdateUsrUid' => 3, 'PrfPath' => 4, 'PrfType' => 5, 'PrfEditable' => 6, 'PrfCreateDate' => 7, 'PrfUpdateDate' => 8, ),
|
||||||
BasePeer::TYPE_COLNAME => array (AppFilesPeer::APF_UID => 0, AppFilesPeer::PRO_UID => 1, AppFilesPeer::CREATE_USR_UID => 2, AppFilesPeer::LAST_UPDATE_USR_UID => 3, AppFilesPeer::APF_PATH => 4, AppFilesPeer::APF_TYPE => 5, AppFilesPeer::APF_EDITABLE => 6, AppFilesPeer::APF_CREATE_DATE => 7, AppFilesPeer::APF_UPDATE_DATE => 8, ),
|
BasePeer::TYPE_COLNAME => array (ProcessFilesPeer::PRF_UID => 0, ProcessFilesPeer::PRO_UID => 1, ProcessFilesPeer::USR_UID => 2, ProcessFilesPeer::PRF_UPDATE_USR_UID => 3, ProcessFilesPeer::PRF_PATH => 4, ProcessFilesPeer::PRF_TYPE => 5, ProcessFilesPeer::PRF_EDITABLE => 6, ProcessFilesPeer::PRF_CREATE_DATE => 7, ProcessFilesPeer::PRF_UPDATE_DATE => 8, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('APF_UID' => 0, 'PRO_UID' => 1, 'CREATE_USR_UID' => 2, 'LAST_UPDATE_USR_UID' => 3, 'APF_PATH' => 4, 'APF_TYPE' => 5, 'APF_EDITABLE' => 6, 'APF_CREATE_DATE' => 7, 'APF_UPDATE_DATE' => 8, ),
|
BasePeer::TYPE_FIELDNAME => array ('PRF_UID' => 0, 'PRO_UID' => 1, 'USR_UID' => 2, 'PRF_UPDATE_USR_UID' => 3, 'PRF_PATH' => 4, 'PRF_TYPE' => 5, 'PRF_EDITABLE' => 6, 'PRF_CREATE_DATE' => 7, 'PRF_UPDATE_DATE' => 8, ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, )
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -95,8 +95,8 @@ abstract class BaseAppFilesPeer
|
|||||||
*/
|
*/
|
||||||
public static function getMapBuilder()
|
public static function getMapBuilder()
|
||||||
{
|
{
|
||||||
include_once 'classes/model/map/AppFilesMapBuilder.php';
|
include_once 'classes/model/map/ProcessFilesMapBuilder.php';
|
||||||
return BasePeer::getMapBuilder('classes.model.map.AppFilesMapBuilder');
|
return BasePeer::getMapBuilder('classes.model.map.ProcessFilesMapBuilder');
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Gets a map (hash) of PHP names to DB column names.
|
* Gets a map (hash) of PHP names to DB column names.
|
||||||
@@ -109,7 +109,7 @@ abstract class BaseAppFilesPeer
|
|||||||
public static function getPhpNameMap()
|
public static function getPhpNameMap()
|
||||||
{
|
{
|
||||||
if (self::$phpNameMap === null) {
|
if (self::$phpNameMap === null) {
|
||||||
$map = AppFilesPeer::getTableMap();
|
$map = ProcessFilesPeer::getTableMap();
|
||||||
$columns = $map->getColumns();
|
$columns = $map->getColumns();
|
||||||
$nameMap = array();
|
$nameMap = array();
|
||||||
foreach ($columns as $column) {
|
foreach ($columns as $column) {
|
||||||
@@ -164,12 +164,12 @@ abstract class BaseAppFilesPeer
|
|||||||
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
||||||
* </code>
|
* </code>
|
||||||
* @param string $alias The alias for the current table.
|
* @param string $alias The alias for the current table.
|
||||||
* @param string $column The column name for current table. (i.e. AppFilesPeer::COLUMN_NAME).
|
* @param string $column The column name for current table. (i.e. ProcessFilesPeer::COLUMN_NAME).
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function alias($alias, $column)
|
public static function alias($alias, $column)
|
||||||
{
|
{
|
||||||
return str_replace(AppFilesPeer::TABLE_NAME.'.', $alias.'.', $column);
|
return str_replace(ProcessFilesPeer::TABLE_NAME.'.', $alias.'.', $column);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -186,28 +186,28 @@ abstract class BaseAppFilesPeer
|
|||||||
public static function addSelectColumns(Criteria $criteria)
|
public static function addSelectColumns(Criteria $criteria)
|
||||||
{
|
{
|
||||||
|
|
||||||
$criteria->addSelectColumn(AppFilesPeer::APF_UID);
|
$criteria->addSelectColumn(ProcessFilesPeer::PRF_UID);
|
||||||
|
|
||||||
$criteria->addSelectColumn(AppFilesPeer::PRO_UID);
|
$criteria->addSelectColumn(ProcessFilesPeer::PRO_UID);
|
||||||
|
|
||||||
$criteria->addSelectColumn(AppFilesPeer::CREATE_USR_UID);
|
$criteria->addSelectColumn(ProcessFilesPeer::USR_UID);
|
||||||
|
|
||||||
$criteria->addSelectColumn(AppFilesPeer::LAST_UPDATE_USR_UID);
|
$criteria->addSelectColumn(ProcessFilesPeer::PRF_UPDATE_USR_UID);
|
||||||
|
|
||||||
$criteria->addSelectColumn(AppFilesPeer::APF_PATH);
|
$criteria->addSelectColumn(ProcessFilesPeer::PRF_PATH);
|
||||||
|
|
||||||
$criteria->addSelectColumn(AppFilesPeer::APF_TYPE);
|
$criteria->addSelectColumn(ProcessFilesPeer::PRF_TYPE);
|
||||||
|
|
||||||
$criteria->addSelectColumn(AppFilesPeer::APF_EDITABLE);
|
$criteria->addSelectColumn(ProcessFilesPeer::PRF_EDITABLE);
|
||||||
|
|
||||||
$criteria->addSelectColumn(AppFilesPeer::APF_CREATE_DATE);
|
$criteria->addSelectColumn(ProcessFilesPeer::PRF_CREATE_DATE);
|
||||||
|
|
||||||
$criteria->addSelectColumn(AppFilesPeer::APF_UPDATE_DATE);
|
$criteria->addSelectColumn(ProcessFilesPeer::PRF_UPDATE_DATE);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const COUNT = 'COUNT(APP_FILES.APF_UID)';
|
const COUNT = 'COUNT(PROCESS_FILES.PRF_UID)';
|
||||||
const COUNT_DISTINCT = 'COUNT(DISTINCT APP_FILES.APF_UID)';
|
const COUNT_DISTINCT = 'COUNT(DISTINCT PROCESS_FILES.PRF_UID)';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the number of rows matching criteria.
|
* Returns the number of rows matching criteria.
|
||||||
@@ -225,9 +225,9 @@ abstract class BaseAppFilesPeer
|
|||||||
// clear out anything that might confuse the ORDER BY clause
|
// clear out anything that might confuse the ORDER BY clause
|
||||||
$criteria->clearSelectColumns()->clearOrderByColumns();
|
$criteria->clearSelectColumns()->clearOrderByColumns();
|
||||||
if ($distinct || in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {
|
if ($distinct || in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {
|
||||||
$criteria->addSelectColumn(AppFilesPeer::COUNT_DISTINCT);
|
$criteria->addSelectColumn(ProcessFilesPeer::COUNT_DISTINCT);
|
||||||
} else {
|
} else {
|
||||||
$criteria->addSelectColumn(AppFilesPeer::COUNT);
|
$criteria->addSelectColumn(ProcessFilesPeer::COUNT);
|
||||||
}
|
}
|
||||||
|
|
||||||
// just in case we're grouping: add those columns to the select statement
|
// just in case we're grouping: add those columns to the select statement
|
||||||
@@ -235,7 +235,7 @@ abstract class BaseAppFilesPeer
|
|||||||
$criteria->addSelectColumn($column);
|
$criteria->addSelectColumn($column);
|
||||||
}
|
}
|
||||||
|
|
||||||
$rs = AppFilesPeer::doSelectRS($criteria, $con);
|
$rs = ProcessFilesPeer::doSelectRS($criteria, $con);
|
||||||
if ($rs->next()) {
|
if ($rs->next()) {
|
||||||
return $rs->getInt(1);
|
return $rs->getInt(1);
|
||||||
} else {
|
} else {
|
||||||
@@ -248,7 +248,7 @@ abstract class BaseAppFilesPeer
|
|||||||
*
|
*
|
||||||
* @param Criteria $criteria object used to create the SELECT statement.
|
* @param Criteria $criteria object used to create the SELECT statement.
|
||||||
* @param Connection $con
|
* @param Connection $con
|
||||||
* @return AppFiles
|
* @return ProcessFiles
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
*/
|
*/
|
||||||
@@ -256,7 +256,7 @@ abstract class BaseAppFilesPeer
|
|||||||
{
|
{
|
||||||
$critcopy = clone $criteria;
|
$critcopy = clone $criteria;
|
||||||
$critcopy->setLimit(1);
|
$critcopy->setLimit(1);
|
||||||
$objects = AppFilesPeer::doSelect($critcopy, $con);
|
$objects = ProcessFilesPeer::doSelect($critcopy, $con);
|
||||||
if ($objects) {
|
if ($objects) {
|
||||||
return $objects[0];
|
return $objects[0];
|
||||||
}
|
}
|
||||||
@@ -273,7 +273,7 @@ abstract class BaseAppFilesPeer
|
|||||||
*/
|
*/
|
||||||
public static function doSelect(Criteria $criteria, $con = null)
|
public static function doSelect(Criteria $criteria, $con = null)
|
||||||
{
|
{
|
||||||
return AppFilesPeer::populateObjects(AppFilesPeer::doSelectRS($criteria, $con));
|
return ProcessFilesPeer::populateObjects(ProcessFilesPeer::doSelectRS($criteria, $con));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Prepares the Criteria object and uses the parent doSelect()
|
* Prepares the Criteria object and uses the parent doSelect()
|
||||||
@@ -297,7 +297,7 @@ abstract class BaseAppFilesPeer
|
|||||||
|
|
||||||
if (!$criteria->getSelectColumns()) {
|
if (!$criteria->getSelectColumns()) {
|
||||||
$criteria = clone $criteria;
|
$criteria = clone $criteria;
|
||||||
AppFilesPeer::addSelectColumns($criteria);
|
ProcessFilesPeer::addSelectColumns($criteria);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the correct dbName
|
// Set the correct dbName
|
||||||
@@ -319,7 +319,7 @@ abstract class BaseAppFilesPeer
|
|||||||
$results = array();
|
$results = array();
|
||||||
|
|
||||||
// set the class once to avoid overhead in the loop
|
// set the class once to avoid overhead in the loop
|
||||||
$cls = AppFilesPeer::getOMClass();
|
$cls = ProcessFilesPeer::getOMClass();
|
||||||
$cls = Propel::import($cls);
|
$cls = Propel::import($cls);
|
||||||
// populate the object(s)
|
// populate the object(s)
|
||||||
while ($rs->next()) {
|
while ($rs->next()) {
|
||||||
@@ -354,13 +354,13 @@ abstract class BaseAppFilesPeer
|
|||||||
*/
|
*/
|
||||||
public static function getOMClass()
|
public static function getOMClass()
|
||||||
{
|
{
|
||||||
return AppFilesPeer::CLASS_DEFAULT;
|
return ProcessFilesPeer::CLASS_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method perform an INSERT on the database, given a AppFiles or Criteria object.
|
* Method perform an INSERT on the database, given a ProcessFiles or Criteria object.
|
||||||
*
|
*
|
||||||
* @param mixed $values Criteria or AppFiles object containing data that is used to create the INSERT statement.
|
* @param mixed $values Criteria or ProcessFiles object containing data that is used to create the INSERT statement.
|
||||||
* @param Connection $con the connection to use
|
* @param Connection $con the connection to use
|
||||||
* @return mixed The new primary key.
|
* @return mixed The new primary key.
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
@@ -375,7 +375,7 @@ abstract class BaseAppFilesPeer
|
|||||||
if ($values instanceof Criteria) {
|
if ($values instanceof Criteria) {
|
||||||
$criteria = clone $values; // rename for clarity
|
$criteria = clone $values; // rename for clarity
|
||||||
} else {
|
} else {
|
||||||
$criteria = $values->buildCriteria(); // build Criteria from AppFiles object
|
$criteria = $values->buildCriteria(); // build Criteria from ProcessFiles object
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -397,9 +397,9 @@ abstract class BaseAppFilesPeer
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method perform an UPDATE on the database, given a AppFiles or Criteria object.
|
* Method perform an UPDATE on the database, given a ProcessFiles or Criteria object.
|
||||||
*
|
*
|
||||||
* @param mixed $values Criteria or AppFiles object containing data create the UPDATE statement.
|
* @param mixed $values Criteria or ProcessFiles object containing data create the UPDATE statement.
|
||||||
* @param Connection $con The connection to use (specify Connection exert more control over transactions).
|
* @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).
|
* @return int The number of affected rows (if supported by underlying database driver).
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
@@ -416,8 +416,8 @@ abstract class BaseAppFilesPeer
|
|||||||
if ($values instanceof Criteria) {
|
if ($values instanceof Criteria) {
|
||||||
$criteria = clone $values; // rename for clarity
|
$criteria = clone $values; // rename for clarity
|
||||||
|
|
||||||
$comparison = $criteria->getComparison(AppFilesPeer::APF_UID);
|
$comparison = $criteria->getComparison(ProcessFilesPeer::PRF_UID);
|
||||||
$selectCriteria->add(AppFilesPeer::APF_UID, $criteria->remove(AppFilesPeer::APF_UID), $comparison);
|
$selectCriteria->add(ProcessFilesPeer::PRF_UID, $criteria->remove(ProcessFilesPeer::PRF_UID), $comparison);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$criteria = $values->buildCriteria(); // gets full criteria
|
$criteria = $values->buildCriteria(); // gets full criteria
|
||||||
@@ -431,7 +431,7 @@ abstract class BaseAppFilesPeer
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to DELETE all rows from the APP_FILES table.
|
* Method to DELETE all rows from the PROCESS_FILES table.
|
||||||
*
|
*
|
||||||
* @return int The number of affected rows (if supported by underlying database driver).
|
* @return int The number of affected rows (if supported by underlying database driver).
|
||||||
*/
|
*/
|
||||||
@@ -445,7 +445,7 @@ abstract class BaseAppFilesPeer
|
|||||||
// use transaction because $criteria could contain info
|
// use transaction because $criteria could contain info
|
||||||
// for more than one table or we could emulating ON DELETE CASCADE, etc.
|
// for more than one table or we could emulating ON DELETE CASCADE, etc.
|
||||||
$con->begin();
|
$con->begin();
|
||||||
$affectedRows += BasePeer::doDeleteAll(AppFilesPeer::TABLE_NAME, $con);
|
$affectedRows += BasePeer::doDeleteAll(ProcessFilesPeer::TABLE_NAME, $con);
|
||||||
$con->commit();
|
$con->commit();
|
||||||
return $affectedRows;
|
return $affectedRows;
|
||||||
} catch (PropelException $e) {
|
} catch (PropelException $e) {
|
||||||
@@ -455,9 +455,9 @@ abstract class BaseAppFilesPeer
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method perform a DELETE on the database, given a AppFiles or Criteria object OR a primary key value.
|
* Method perform a DELETE on the database, given a ProcessFiles or Criteria object OR a primary key value.
|
||||||
*
|
*
|
||||||
* @param mixed $values Criteria or AppFiles object or primary key or array of primary keys
|
* @param mixed $values Criteria or ProcessFiles object or primary key or array of primary keys
|
||||||
* which is used to create the DELETE statement
|
* which is used to create the DELETE statement
|
||||||
* @param Connection $con the connection to use
|
* @param Connection $con the connection to use
|
||||||
* @return int The number of affected rows (if supported by underlying database driver).
|
* @return int The number of affected rows (if supported by underlying database driver).
|
||||||
@@ -469,18 +469,18 @@ abstract class BaseAppFilesPeer
|
|||||||
public static function doDelete($values, $con = null)
|
public static function doDelete($values, $con = null)
|
||||||
{
|
{
|
||||||
if ($con === null) {
|
if ($con === null) {
|
||||||
$con = Propel::getConnection(AppFilesPeer::DATABASE_NAME);
|
$con = Propel::getConnection(ProcessFilesPeer::DATABASE_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($values instanceof Criteria) {
|
if ($values instanceof Criteria) {
|
||||||
$criteria = clone $values; // rename for clarity
|
$criteria = clone $values; // rename for clarity
|
||||||
} elseif ($values instanceof AppFiles) {
|
} elseif ($values instanceof ProcessFiles) {
|
||||||
|
|
||||||
$criteria = $values->buildPkeyCriteria();
|
$criteria = $values->buildPkeyCriteria();
|
||||||
} else {
|
} else {
|
||||||
// it must be the primary key
|
// it must be the primary key
|
||||||
$criteria = new Criteria(self::DATABASE_NAME);
|
$criteria = new Criteria(self::DATABASE_NAME);
|
||||||
$criteria->add(AppFilesPeer::APF_UID, (array) $values, Criteria::IN);
|
$criteria->add(ProcessFilesPeer::PRF_UID, (array) $values, Criteria::IN);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the correct dbName
|
// Set the correct dbName
|
||||||
@@ -503,24 +503,24 @@ abstract class BaseAppFilesPeer
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates all modified columns of given AppFiles object.
|
* Validates all modified columns of given ProcessFiles object.
|
||||||
* If parameter $columns is either a single column name or an array of column names
|
* If parameter $columns is either a single column name or an array of column names
|
||||||
* than only those columns are validated.
|
* than only those columns are validated.
|
||||||
*
|
*
|
||||||
* NOTICE: This does not apply to primary or foreign keys for now.
|
* NOTICE: This does not apply to primary or foreign keys for now.
|
||||||
*
|
*
|
||||||
* @param AppFiles $obj The object to validate.
|
* @param ProcessFiles $obj The object to validate.
|
||||||
* @param mixed $cols Column name or array of column names.
|
* @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.
|
* @return mixed TRUE if all columns are valid or the error message of the first invalid column.
|
||||||
*/
|
*/
|
||||||
public static function doValidate(AppFiles $obj, $cols = null)
|
public static function doValidate(ProcessFiles $obj, $cols = null)
|
||||||
{
|
{
|
||||||
$columns = array();
|
$columns = array();
|
||||||
|
|
||||||
if ($cols) {
|
if ($cols) {
|
||||||
$dbMap = Propel::getDatabaseMap(AppFilesPeer::DATABASE_NAME);
|
$dbMap = Propel::getDatabaseMap(ProcessFilesPeer::DATABASE_NAME);
|
||||||
$tableMap = $dbMap->getTable(AppFilesPeer::TABLE_NAME);
|
$tableMap = $dbMap->getTable(ProcessFilesPeer::TABLE_NAME);
|
||||||
|
|
||||||
if (! is_array($cols)) {
|
if (! is_array($cols)) {
|
||||||
$cols = array($cols);
|
$cols = array($cols);
|
||||||
@@ -536,7 +536,7 @@ abstract class BaseAppFilesPeer
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return BasePeer::doValidate(AppFilesPeer::DATABASE_NAME, AppFilesPeer::TABLE_NAME, $columns);
|
return BasePeer::doValidate(ProcessFilesPeer::DATABASE_NAME, ProcessFilesPeer::TABLE_NAME, $columns);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -544,7 +544,7 @@ abstract class BaseAppFilesPeer
|
|||||||
*
|
*
|
||||||
* @param mixed $pk the primary key.
|
* @param mixed $pk the primary key.
|
||||||
* @param Connection $con the connection to use
|
* @param Connection $con the connection to use
|
||||||
* @return AppFiles
|
* @return ProcessFiles
|
||||||
*/
|
*/
|
||||||
public static function retrieveByPK($pk, $con = null)
|
public static function retrieveByPK($pk, $con = null)
|
||||||
{
|
{
|
||||||
@@ -552,12 +552,12 @@ abstract class BaseAppFilesPeer
|
|||||||
$con = Propel::getConnection(self::DATABASE_NAME);
|
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
$criteria = new Criteria(AppFilesPeer::DATABASE_NAME);
|
$criteria = new Criteria(ProcessFilesPeer::DATABASE_NAME);
|
||||||
|
|
||||||
$criteria->add(AppFilesPeer::APF_UID, $pk);
|
$criteria->add(ProcessFilesPeer::PRF_UID, $pk);
|
||||||
|
|
||||||
|
|
||||||
$v = AppFilesPeer::doSelect($criteria, $con);
|
$v = ProcessFilesPeer::doSelect($criteria, $con);
|
||||||
|
|
||||||
return !empty($v) > 0 ? $v[0] : null;
|
return !empty($v) > 0 ? $v[0] : null;
|
||||||
}
|
}
|
||||||
@@ -581,8 +581,8 @@ abstract class BaseAppFilesPeer
|
|||||||
$objs = array();
|
$objs = array();
|
||||||
} else {
|
} else {
|
||||||
$criteria = new Criteria();
|
$criteria = new Criteria();
|
||||||
$criteria->add(AppFilesPeer::APF_UID, $pks, Criteria::IN);
|
$criteria->add(ProcessFilesPeer::PRF_UID, $pks, Criteria::IN);
|
||||||
$objs = AppFilesPeer::doSelect($criteria, $con);
|
$objs = ProcessFilesPeer::doSelect($criteria, $con);
|
||||||
}
|
}
|
||||||
return $objs;
|
return $objs;
|
||||||
}
|
}
|
||||||
@@ -594,14 +594,14 @@ if (Propel::isInit()) {
|
|||||||
// the MapBuilder classes register themselves with Propel during initialization
|
// the MapBuilder classes register themselves with Propel during initialization
|
||||||
// so we need to load them here.
|
// so we need to load them here.
|
||||||
try {
|
try {
|
||||||
BaseAppFilesPeer::getMapBuilder();
|
BaseProcessFilesPeer::getMapBuilder();
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Propel::log('Could not initialize Peer: ' . $e->getMessage(), Propel::LOG_ERR);
|
Propel::log('Could not initialize Peer: ' . $e->getMessage(), Propel::LOG_ERR);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// even if Propel is not yet initialized, the map builder class can be registered
|
// even if Propel is not yet initialized, the map builder class can be registered
|
||||||
// now and then it will be loaded when Propel initializes.
|
// now and then it will be loaded when Propel initializes.
|
||||||
require_once 'classes/model/map/AppFilesMapBuilder.php';
|
require_once 'classes/model/map/ProcessFilesMapBuilder.php';
|
||||||
Propel::registerMapBuilder('classes.model.map.AppFilesMapBuilder');
|
Propel::registerMapBuilder('classes.model.map.ProcessFilesMapBuilder');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3014,9 +3014,9 @@
|
|||||||
</index>
|
</index>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<table name="APP_FILES">
|
<table name="PROCESS_FILES">
|
||||||
<vendor type="mysql">
|
<vendor type="mysql">
|
||||||
<parameter name="Name" value="APP_FILES"/>
|
<parameter name="Name" value="PROCESS_FILES"/>
|
||||||
<parameter name="Engine" value="InnoDB"/>
|
<parameter name="Engine" value="InnoDB"/>
|
||||||
<parameter name="Version" value="10"/>
|
<parameter name="Version" value="10"/>
|
||||||
<parameter name="Row_format" value="Dynamic"/>
|
<parameter name="Row_format" value="Dynamic"/>
|
||||||
@@ -3035,15 +3035,15 @@
|
|||||||
<parameter name="Create_options" value=""/>
|
<parameter name="Create_options" value=""/>
|
||||||
<parameter name="Comment" value="Application files metadata"/>
|
<parameter name="Comment" value="Application files metadata"/>
|
||||||
</vendor>
|
</vendor>
|
||||||
<column name="APF_UID" type="VARCHAR" size="32" required="true" primaryKey="true" />
|
<column name="PRF_UID" type="VARCHAR" size="32" required="true" primaryKey="true" />
|
||||||
<column name="PRO_UID" type="VARCHAR" size="32" required="true" />
|
<column name="PRO_UID" type="VARCHAR" size="32" required="true" />
|
||||||
<column name="CREATE_USR_UID" type="VARCHAR" size="32" required="true" />
|
<column name="USR_UID" type="VARCHAR" size="32" required="true" />
|
||||||
<column name="LAST_UPDATE_USR_UID" type="VARCHAR" size="32" required="true" />
|
<column name="PRF_UPDATE_USR_UID" type="VARCHAR" size="32" required="true" />
|
||||||
<column name="APF_PATH" type="VARCHAR" size="256" required="true" default="" />
|
<column name="PRF_PATH" type="VARCHAR" size="256" required="true" default="" />
|
||||||
<column name="APF_TYPE" type="VARCHAR" size="32" required="false" default="" />
|
<column name="PRF_TYPE" type="VARCHAR" size="32" required="false" default="" />
|
||||||
<column name="APF_EDITABLE" type="TINYINT" required="false" default="1" />
|
<column name="PRF_EDITABLE" type="TINYINT" required="false" default="1" />
|
||||||
<column name="APF_CREATE_DATE" type="TIMESTAMP" required="true" />
|
<column name="PRF_CREATE_DATE" type="TIMESTAMP" required="true" />
|
||||||
<column name="APF_UPDATE_DATE" type="TIMESTAMP" required="false" />
|
<column name="PRF_UPDATE_DATE" type="TIMESTAMP" required="false" />
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
@@ -1475,24 +1475,24 @@ CREATE TABLE `SESSION_STORAGE`
|
|||||||
KEY `indexSessionStorage`(`ID`)
|
KEY `indexSessionStorage`(`ID`)
|
||||||
)ENGINE=InnoDB ;
|
)ENGINE=InnoDB ;
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
#-- APP_FILES
|
#-- PROCESS_FILES
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `APP_FILES`;
|
DROP TABLE IF EXISTS `PROCESS_FILES`;
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE `APP_FILES`
|
CREATE TABLE `PROCESS_FILES`
|
||||||
(
|
(
|
||||||
`APF_UID` VARCHAR(32) NOT NULL,
|
`PRF_UID` VARCHAR(32) NOT NULL,
|
||||||
`PRO_UID` VARCHAR(32) NOT NULL,
|
`PRO_UID` VARCHAR(32) NOT NULL,
|
||||||
`CREATE_USR_UID` VARCHAR(32) NOT NULL,
|
`USR_UID` VARCHAR(32) NOT NULL,
|
||||||
`LAST_UPDATE_USR_UID` VARCHAR(32) NOT NULL,
|
`PRF_UPDATE_USR_UID` VARCHAR(32) NOT NULL,
|
||||||
`APF_PATH` VARCHAR(256) default '' NOT NULL,
|
`PRF_PATH` VARCHAR(256) default '' NOT NULL,
|
||||||
`APF_TYPE` VARCHAR(32) default '',
|
`PRF_TYPE` VARCHAR(32) default '',
|
||||||
`APF_EDITABLE` TINYINT default 1,
|
`PRF_EDITABLE` TINYINT default 1,
|
||||||
`APF_CREATE_DATE` DATETIME NOT NULL,
|
`PRF_CREATE_DATE` DATETIME NOT NULL,
|
||||||
`APF_UPDATE_DATE` DATETIME,
|
`PRF_UPDATE_DATE` DATETIME,
|
||||||
PRIMARY KEY (`APF_UID`)
|
PRIMARY KEY (`PRF_UID`)
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET='utf8' COMMENT='Application files metadata';
|
)ENGINE=InnoDB DEFAULT CHARSET='utf8' COMMENT='Application files metadata';
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
#-- OAUTH_ACCESS_TOKENS
|
#-- OAUTH_ACCESS_TOKENS
|
||||||
|
|||||||
Reference in New Issue
Block a user