Adding the model of the db
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
<?php
|
||||
|
||||
require_once 'propel/map/MapBuilder.php';
|
||||
include_once 'creole/CreoleTypes.php';
|
||||
|
||||
|
||||
/**
|
||||
* This class adds structure of 'ADDONS_MANAGER' table to 'workflow' DatabaseMap object.
|
||||
*
|
||||
@@ -16,14 +18,17 @@ include_once 'creole/CreoleTypes.php';
|
||||
*/
|
||||
class AddonsManagerMapBuilder
|
||||
{
|
||||
|
||||
/**
|
||||
* The (dot-path) name of this class
|
||||
*/
|
||||
const CLASS_NAME = 'classes.model.map.AddonsManagerMapBuilder';
|
||||
|
||||
/**
|
||||
* The database map.
|
||||
*/
|
||||
private $dbMap;
|
||||
|
||||
/**
|
||||
* Tells us if this DatabaseMapBuilder is built so that we
|
||||
* don't have to re-build it every time.
|
||||
@@ -56,7 +61,6 @@ class AddonsManagerMapBuilder
|
||||
$this->dbMap = Propel::getDatabaseMap('workflow');
|
||||
|
||||
$tMap = $this->dbMap->addTable('ADDONS_MANAGER');
|
||||
|
||||
$tMap->setPhpName('AddonsManager');
|
||||
|
||||
$tMap->setUseIdGenerator(false);
|
||||
@@ -96,6 +100,7 @@ class AddonsManagerMapBuilder
|
||||
$tMap->addColumn('ADDON_DOWNLOAD_PROGRESS', 'AddonDownloadProgress', 'double', CreoleTypes::FLOAT, false, null);
|
||||
|
||||
$tMap->addColumn('ADDON_DOWNLOAD_MD5', 'AddonDownloadMd5', 'string', CreoleTypes::VARCHAR, false, 32);
|
||||
}
|
||||
}
|
||||
|
||||
} // doBuild()
|
||||
|
||||
} // AddonsManagerMapBuilder
|
||||
|
||||
@@ -14,25 +14,27 @@ include_once 'creole/CreoleTypes.php';
|
||||
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
|
||||
* (i.e. if it's a text column type).
|
||||
*
|
||||
* @package classes.model.map
|
||||
* @package workflow.classes.model.map
|
||||
*/
|
||||
class LicenseManagerMapBuilder
|
||||
{
|
||||
|
||||
/**
|
||||
* The (dot-path) name of this class
|
||||
*/
|
||||
const CLASS_NAME = 'classes.model.map.LicenseManagerMapBuilder';
|
||||
|
||||
/**
|
||||
* The database map.
|
||||
*/
|
||||
private $dbMap;
|
||||
|
||||
/**
|
||||
* Tells us if this DatabaseMapBuilder is built so that we
|
||||
* don't have to re-build it every time.
|
||||
*
|
||||
* @return boolean true if this DatabaseMapBuilder is built, false otherwise.
|
||||
*/
|
||||
|
||||
public function isBuilt()
|
||||
{
|
||||
return ($this->dbMap !== null);
|
||||
@@ -59,14 +61,13 @@ class LicenseManagerMapBuilder
|
||||
$this->dbMap = Propel::getDatabaseMap('workflow');
|
||||
|
||||
$tMap = $this->dbMap->addTable('LICENSE_MANAGER');
|
||||
|
||||
$tMap->setPhpName('LicenseManager');
|
||||
|
||||
$tMap->setUseIdGenerator(false);
|
||||
|
||||
$tMap->addPrimaryKey('LICENSE_UID', 'LicenseUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('LICENSE_USER', 'LicenseUser', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
$tMap->addColumn('LICENSE_USER', 'LicenseUser', 'string', CreoleTypes::VARCHAR, true, 150);
|
||||
|
||||
$tMap->addColumn('LICENSE_START', 'LicenseStart', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
@@ -74,7 +75,7 @@ class LicenseManagerMapBuilder
|
||||
|
||||
$tMap->addColumn('LICENSE_SPAN', 'LicenseSpan', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
$tMap->addColumn('LICENSE_STATUS', 'LicenseStatus', 'string', CreoleTypes::VARCHAR, false, 100);
|
||||
$tMap->addColumn('LICENSE_STATUS', 'LicenseStatus', 'string', CreoleTypes::VARCHAR, true, 100);
|
||||
|
||||
$tMap->addColumn('LICENSE_DATA', 'LicenseData', 'string', CreoleTypes::LONGVARCHAR, true, null);
|
||||
|
||||
@@ -83,6 +84,7 @@ class LicenseManagerMapBuilder
|
||||
$tMap->addColumn('LICENSE_WORKSPACE', 'LicenseWorkspace', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('LICENSE_TYPE', 'LicenseType', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
}
|
||||
}
|
||||
|
||||
} // doBuild()
|
||||
|
||||
} // LicenseManagerMapBuilder
|
||||
|
||||
@@ -4,6 +4,7 @@ require_once 'propel/om/BaseObject.php';
|
||||
|
||||
require_once 'propel/om/Persistent.php';
|
||||
|
||||
|
||||
include_once 'propel/util/Criteria.php';
|
||||
|
||||
include_once 'classes/model/AddonsManagerPeer.php';
|
||||
@@ -22,133 +23,114 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
* The Peer class.
|
||||
* Instance provides a convenient way of calling static methods on a class
|
||||
* that calling code may not be able to identify.
|
||||
*
|
||||
* @var AddonsManagerPeer
|
||||
*/
|
||||
protected static $peer;
|
||||
|
||||
/**
|
||||
* The value for the addon_id field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_id;
|
||||
|
||||
/**
|
||||
* The value for the store_id field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $store_id;
|
||||
|
||||
/**
|
||||
* The value for the addon_name field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_name;
|
||||
|
||||
/**
|
||||
* The value for the addon_nick field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_nick;
|
||||
|
||||
/**
|
||||
* The value for the addon_download_filename field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_download_filename;
|
||||
|
||||
/**
|
||||
* The value for the addon_description field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_description;
|
||||
|
||||
/**
|
||||
* The value for the addon_state field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_state;
|
||||
|
||||
/**
|
||||
* The value for the addon_state_changed field.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $addon_state_changed;
|
||||
|
||||
/**
|
||||
* The value for the addon_status field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_status;
|
||||
|
||||
/**
|
||||
* The value for the addon_version field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_version;
|
||||
|
||||
/**
|
||||
* The value for the addon_type field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_type;
|
||||
|
||||
/**
|
||||
* The value for the addon_publisher field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_publisher;
|
||||
|
||||
/**
|
||||
* The value for the addon_release_date field.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $addon_release_date;
|
||||
|
||||
/**
|
||||
* The value for the addon_release_type field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_release_type;
|
||||
|
||||
/**
|
||||
* The value for the addon_release_notes field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_release_notes;
|
||||
|
||||
/**
|
||||
* The value for the addon_download_url field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_download_url;
|
||||
|
||||
/**
|
||||
* The value for the addon_download_progress field.
|
||||
*
|
||||
* @var double
|
||||
*/
|
||||
protected $addon_download_progress;
|
||||
|
||||
/**
|
||||
* The value for the addon_download_md5 field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $addon_download_md5;
|
||||
@@ -156,7 +138,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
/**
|
||||
* Flag to prevent endless save loop, if this object is referenced
|
||||
* by another object which falls in this transaction.
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
protected $alreadyInSave = false;
|
||||
@@ -164,7 +145,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
/**
|
||||
* Flag to prevent endless validation loop, if this object is referenced
|
||||
* by another object which falls in this transaction.
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
protected $alreadyInValidation = false;
|
||||
@@ -176,6 +156,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonId()
|
||||
{
|
||||
|
||||
return $this->addon_id;
|
||||
}
|
||||
|
||||
@@ -186,6 +167,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getStoreId()
|
||||
{
|
||||
|
||||
return $this->store_id;
|
||||
}
|
||||
|
||||
@@ -196,6 +178,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonName()
|
||||
{
|
||||
|
||||
return $this->addon_name;
|
||||
}
|
||||
|
||||
@@ -206,6 +189,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonNick()
|
||||
{
|
||||
|
||||
return $this->addon_nick;
|
||||
}
|
||||
|
||||
@@ -216,6 +200,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonDownloadFilename()
|
||||
{
|
||||
|
||||
return $this->addon_download_filename;
|
||||
}
|
||||
|
||||
@@ -226,6 +211,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonDescription()
|
||||
{
|
||||
|
||||
return $this->addon_description;
|
||||
}
|
||||
|
||||
@@ -236,6 +222,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonState()
|
||||
{
|
||||
|
||||
return $this->addon_state;
|
||||
}
|
||||
|
||||
@@ -249,14 +236,15 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonStateChanged($format = 'Y-m-d H:i:s')
|
||||
{
|
||||
|
||||
if ($this->addon_state_changed === null || $this->addon_state_changed === '') {
|
||||
return null;
|
||||
} elseif (!is_int($this->addon_state_changed)) {
|
||||
// a non-timestamp value was set externally, so we convert it
|
||||
$ts = strtotime($this->addon_state_changed);
|
||||
if ($ts === -1 || $ts === false) {
|
||||
// in PHP 5.1 return value changes to FALSE
|
||||
throw new PropelException( "Unable to parse value of [addon_state_changed] as date/time value: " . var_export( $this->addon_state_changed, true ) );
|
||||
throw new PropelException("Unable to parse value of [addon_state_changed] as date/time value: " .
|
||||
var_export($this->addon_state_changed, true));
|
||||
}
|
||||
} else {
|
||||
$ts = $this->addon_state_changed;
|
||||
@@ -277,6 +265,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonStatus()
|
||||
{
|
||||
|
||||
return $this->addon_status;
|
||||
}
|
||||
|
||||
@@ -287,6 +276,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonVersion()
|
||||
{
|
||||
|
||||
return $this->addon_version;
|
||||
}
|
||||
|
||||
@@ -297,6 +287,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonType()
|
||||
{
|
||||
|
||||
return $this->addon_type;
|
||||
}
|
||||
|
||||
@@ -307,6 +298,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonPublisher()
|
||||
{
|
||||
|
||||
return $this->addon_publisher;
|
||||
}
|
||||
|
||||
@@ -320,14 +312,15 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonReleaseDate($format = 'Y-m-d H:i:s')
|
||||
{
|
||||
|
||||
if ($this->addon_release_date === null || $this->addon_release_date === '') {
|
||||
return null;
|
||||
} elseif (!is_int($this->addon_release_date)) {
|
||||
// a non-timestamp value was set externally, so we convert it
|
||||
$ts = strtotime($this->addon_release_date);
|
||||
if ($ts === -1 || $ts === false) {
|
||||
// in PHP 5.1 return value changes to FALSE
|
||||
throw new PropelException( "Unable to parse value of [addon_release_date] as date/time value: " . var_export( $this->addon_release_date, true ) );
|
||||
throw new PropelException("Unable to parse value of [addon_release_date] as date/time value: " .
|
||||
var_export($this->addon_release_date, true));
|
||||
}
|
||||
} else {
|
||||
$ts = $this->addon_release_date;
|
||||
@@ -348,6 +341,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonReleaseType()
|
||||
{
|
||||
|
||||
return $this->addon_release_type;
|
||||
}
|
||||
|
||||
@@ -358,6 +352,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonReleaseNotes()
|
||||
{
|
||||
|
||||
return $this->addon_release_notes;
|
||||
}
|
||||
|
||||
@@ -368,6 +363,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonDownloadUrl()
|
||||
{
|
||||
|
||||
return $this->addon_download_url;
|
||||
}
|
||||
|
||||
@@ -378,6 +374,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonDownloadProgress()
|
||||
{
|
||||
|
||||
return $this->addon_download_progress;
|
||||
}
|
||||
|
||||
@@ -388,6 +385,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getAddonDownloadMd5()
|
||||
{
|
||||
|
||||
return $this->addon_download_md5;
|
||||
}
|
||||
|
||||
@@ -399,15 +397,18 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonId($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->addon_id !== $v) {
|
||||
$this->addon_id = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_ID;
|
||||
}
|
||||
|
||||
} // setAddonId()
|
||||
|
||||
/**
|
||||
@@ -418,15 +419,18 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setStoreId($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->store_id !== $v) {
|
||||
$this->store_id = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::STORE_ID;
|
||||
}
|
||||
|
||||
} // setStoreId()
|
||||
|
||||
/**
|
||||
@@ -437,15 +441,18 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonName($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->addon_name !== $v) {
|
||||
$this->addon_name = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_NAME;
|
||||
}
|
||||
|
||||
} // setAddonName()
|
||||
|
||||
/**
|
||||
@@ -456,11 +463,13 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonNick($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->addon_nick !== $v) {
|
||||
$this->addon_nick = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_NICK;
|
||||
@@ -476,15 +485,18 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonDownloadFilename($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->addon_download_filename !== $v) {
|
||||
$this->addon_download_filename = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME;
|
||||
}
|
||||
|
||||
} // setAddonDownloadFilename()
|
||||
|
||||
/**
|
||||
@@ -495,15 +507,18 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonDescription($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->addon_description !== $v) {
|
||||
$this->addon_description = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_DESCRIPTION;
|
||||
}
|
||||
|
||||
} // setAddonDescription()
|
||||
|
||||
/**
|
||||
@@ -514,15 +529,18 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonState($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->addon_state !== $v) {
|
||||
$this->addon_state = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_STATE;
|
||||
}
|
||||
|
||||
} // setAddonState()
|
||||
|
||||
/**
|
||||
@@ -533,11 +551,16 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonStateChanged($v)
|
||||
{
|
||||
|
||||
if ($v !== null && !is_int($v)) {
|
||||
$ts = strtotime($v);
|
||||
//Date/time accepts null values
|
||||
if ($v == '') {
|
||||
$ts = null;
|
||||
}
|
||||
if ($ts === -1 || $ts === false) {
|
||||
// in PHP 5.1 return value changes to FALSE
|
||||
throw new PropelException( "Unable to parse date/time value for [addon_state_changed] from input: " . var_export( $v, true ) );
|
||||
throw new PropelException("Unable to parse date/time value for [addon_state_changed] from input: " .
|
||||
var_export($v, true));
|
||||
}
|
||||
} else {
|
||||
$ts = $v;
|
||||
@@ -546,6 +569,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
$this->addon_state_changed = $ts;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_STATE_CHANGED;
|
||||
}
|
||||
|
||||
} // setAddonStateChanged()
|
||||
|
||||
/**
|
||||
@@ -556,15 +580,18 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonStatus($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->addon_status !== $v) {
|
||||
$this->addon_status = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_STATUS;
|
||||
}
|
||||
|
||||
} // setAddonStatus()
|
||||
|
||||
/**
|
||||
@@ -575,15 +602,18 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonVersion($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->addon_version !== $v) {
|
||||
$this->addon_version = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_VERSION;
|
||||
}
|
||||
|
||||
} // setAddonVersion()
|
||||
|
||||
/**
|
||||
@@ -594,15 +624,18 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonType($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->addon_type !== $v) {
|
||||
$this->addon_type = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_TYPE;
|
||||
}
|
||||
|
||||
} // setAddonType()
|
||||
|
||||
/**
|
||||
@@ -613,15 +646,18 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonPublisher($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->addon_publisher !== $v) {
|
||||
$this->addon_publisher = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_PUBLISHER;
|
||||
}
|
||||
|
||||
} // setAddonPublisher()
|
||||
|
||||
/**
|
||||
@@ -632,11 +668,16 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonReleaseDate($v)
|
||||
{
|
||||
|
||||
if ($v !== null && !is_int($v)) {
|
||||
$ts = strtotime($v);
|
||||
//Date/time accepts null values
|
||||
if ($v == '') {
|
||||
$ts = null;
|
||||
}
|
||||
if ($ts === -1 || $ts === false) {
|
||||
// in PHP 5.1 return value changes to FALSE
|
||||
throw new PropelException( "Unable to parse date/time value for [addon_release_date] from input: " . var_export( $v, true ) );
|
||||
throw new PropelException("Unable to parse date/time value for [addon_release_date] from input: " .
|
||||
var_export($v, true));
|
||||
}
|
||||
} else {
|
||||
$ts = $v;
|
||||
@@ -645,6 +686,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
$this->addon_release_date = $ts;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_RELEASE_DATE;
|
||||
}
|
||||
|
||||
} // setAddonReleaseDate()
|
||||
|
||||
/**
|
||||
@@ -655,6 +697,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonReleaseType($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)) {
|
||||
@@ -676,6 +719,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonReleaseNotes($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)) {
|
||||
@@ -697,6 +741,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonDownloadUrl($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)) {
|
||||
@@ -707,6 +752,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
$this->addon_download_url = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_DOWNLOAD_URL;
|
||||
}
|
||||
|
||||
} // setAddonDownloadUrl()
|
||||
|
||||
/**
|
||||
@@ -717,10 +763,12 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonDownloadProgress($v)
|
||||
{
|
||||
|
||||
if ($this->addon_download_progress !== $v) {
|
||||
$this->addon_download_progress = $v;
|
||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS;
|
||||
}
|
||||
|
||||
} // setAddonDownloadProgress()
|
||||
|
||||
/**
|
||||
@@ -731,6 +779,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setAddonDownloadMd5($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)) {
|
||||
@@ -840,13 +889,12 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
/**
|
||||
* Stores the object in the database.
|
||||
* If the object is new,
|
||||
* Stores the object in the database. If the object is new,
|
||||
* it inserts it; otherwise an update is performed. This method
|
||||
* wraps the doSave() worker method in a transaction.
|
||||
*
|
||||
* @param Connection $con
|
||||
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
|
||||
* @return int The number of rows affected by this insert/update
|
||||
* @throws PropelException
|
||||
* @see doSave()
|
||||
*/
|
||||
@@ -878,7 +926,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
* All related objects are also updated in this method.
|
||||
*
|
||||
* @param Connection $con
|
||||
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
|
||||
* @return int The number of rows affected by this insert/update and any referring
|
||||
* @throws PropelException
|
||||
* @see save()
|
||||
*/
|
||||
@@ -888,6 +936,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
if (!$this->alreadyInSave) {
|
||||
$this->alreadyInSave = true;
|
||||
|
||||
|
||||
// If this object has been modified, then save it to the database.
|
||||
if ($this->isModified()) {
|
||||
if ($this->isNew()) {
|
||||
@@ -895,6 +944,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
|
||||
// should always be true here (even though technically
|
||||
// BasePeer::doInsert() can insert multiple rows).
|
||||
|
||||
$this->setNew(false);
|
||||
} else {
|
||||
$affectedRows += AddonsManagerPeer::doUpdate($this, $con);
|
||||
@@ -909,7 +959,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
|
||||
/**
|
||||
* Array of ValidationFailed objects.
|
||||
*
|
||||
* @var array ValidationFailed[]
|
||||
*/
|
||||
protected $validationFailures = array();
|
||||
@@ -957,7 +1006,8 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
* an aggreagated array of ValidationFailed objects will be returned.
|
||||
*
|
||||
* @param array $columns Array of column names to validate.
|
||||
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
|
||||
* @return mixed <code>true</code> if all validations pass;
|
||||
array of <code>ValidationFailed</code> objects otherwise.
|
||||
*/
|
||||
protected function doValidate($columns = null)
|
||||
{
|
||||
@@ -967,10 +1017,13 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
|
||||
$failureMap = array();
|
||||
|
||||
|
||||
if (($retval = AddonsManagerPeer::doValidate($this, $columns)) !== true) {
|
||||
$failureMap = array_merge($failureMap, $retval);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$this->alreadyInValidation = false;
|
||||
}
|
||||
|
||||
@@ -1093,7 +1146,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
$keys[14] => $this->getAddonReleaseNotes(),
|
||||
$keys[15] => $this->getAddonDownloadUrl(),
|
||||
$keys[16] => $this->getAddonDownloadProgress(),
|
||||
$keys[17] => $this->getAddonDownloadMd5()
|
||||
$keys[17] => $this->getAddonDownloadMd5(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -1205,57 +1258,75 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
if (array_key_exists($keys[0], $arr)) {
|
||||
$this->setAddonId($arr[$keys[0]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[1], $arr)) {
|
||||
$this->setStoreId($arr[$keys[1]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[2], $arr)) {
|
||||
$this->setAddonName($arr[$keys[2]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[3], $arr)) {
|
||||
$this->setAddonNick($arr[$keys[3]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[4], $arr)) {
|
||||
$this->setAddonDownloadFilename($arr[$keys[4]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[5], $arr)) {
|
||||
$this->setAddonDescription($arr[$keys[5]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[6], $arr)) {
|
||||
$this->setAddonState($arr[$keys[6]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[7], $arr)) {
|
||||
$this->setAddonStateChanged($arr[$keys[7]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[8], $arr)) {
|
||||
$this->setAddonStatus($arr[$keys[8]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[9], $arr)) {
|
||||
$this->setAddonVersion($arr[$keys[9]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[10], $arr)) {
|
||||
$this->setAddonType($arr[$keys[10]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[11], $arr)) {
|
||||
$this->setAddonPublisher($arr[$keys[11]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[12], $arr)) {
|
||||
$this->setAddonReleaseDate($arr[$keys[12]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[13], $arr)) {
|
||||
$this->setAddonReleaseType($arr[$keys[13]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[14], $arr)) {
|
||||
$this->setAddonReleaseNotes($arr[$keys[14]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[15], $arr)) {
|
||||
$this->setAddonDownloadUrl($arr[$keys[15]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[16], $arr)) {
|
||||
$this->setAddonDownloadProgress($arr[$keys[16]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[17], $arr)) {
|
||||
$this->setAddonDownloadMd5($arr[$keys[17]]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1270,58 +1341,76 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_ID)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_ID, $this->addon_id);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::STORE_ID)) {
|
||||
$criteria->add(AddonsManagerPeer::STORE_ID, $this->store_id);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_NAME)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_NAME, $this->addon_name);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_NICK)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_NICK, $this->addon_nick);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME, $this->addon_download_filename);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_DESCRIPTION)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_DESCRIPTION, $this->addon_description);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_STATE)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_STATE, $this->addon_state);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_STATE_CHANGED)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_STATE_CHANGED, $this->addon_state_changed);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_STATUS)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_STATUS, $this->addon_status);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_VERSION)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_VERSION, $this->addon_version);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_TYPE)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_TYPE, $this->addon_type);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_PUBLISHER)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_PUBLISHER, $this->addon_publisher);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_RELEASE_DATE)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_RELEASE_DATE, $this->addon_release_date);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_RELEASE_TYPE)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_RELEASE_TYPE, $this->addon_release_type);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_RELEASE_NOTES)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_RELEASE_NOTES, $this->addon_release_notes);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_DOWNLOAD_URL)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_DOWNLOAD_URL, $this->addon_download_url);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS, $this->addon_download_progress);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsManagerPeer::ADDON_DOWNLOAD_MD5)) {
|
||||
$criteria->add(AddonsManagerPeer::ADDON_DOWNLOAD_MD5, $this->addon_download_md5);
|
||||
}
|
||||
|
||||
|
||||
return $criteria;
|
||||
}
|
||||
|
||||
@@ -1346,7 +1435,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
/**
|
||||
* Returns the composite primary key for this object.
|
||||
* The array elements will be in same order as specified in XML.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getPrimaryKey()
|
||||
@@ -1387,6 +1475,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function copyInto($copyObj, $deepCopy = false)
|
||||
{
|
||||
|
||||
$copyObj->setAddonName($this->addon_name);
|
||||
|
||||
$copyObj->setAddonNick($this->addon_nick);
|
||||
@@ -1419,11 +1508,12 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
||||
|
||||
$copyObj->setAddonDownloadMd5($this->addon_download_md5);
|
||||
|
||||
|
||||
$copyObj->setNew(true);
|
||||
|
||||
$copyObj->setAddonId( null ); // this is a pkey column, so set to default value
|
||||
$copyObj->setAddonId(NULL); // this is a pkey column, so set to default value
|
||||
|
||||
$copyObj->setStoreId( null ); // this is a pkey column, so set to default value
|
||||
$copyObj->setStoreId(NULL); // this is a pkey column, so set to default value
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -15,126 +15,80 @@ include_once 'classes/model/AddonsManager.php';
|
||||
abstract class BaseAddonsManagerPeer
|
||||
{
|
||||
|
||||
/**
|
||||
* the default database name for this class
|
||||
*/
|
||||
/** the default database name for this class */
|
||||
const DATABASE_NAME = 'workflow';
|
||||
|
||||
/**
|
||||
* the table name for this class
|
||||
*/
|
||||
/** the table name for this class */
|
||||
const TABLE_NAME = 'ADDONS_MANAGER';
|
||||
|
||||
/**
|
||||
* A class that can be returned by this peer.
|
||||
*/
|
||||
/** A class that can be returned by this peer. */
|
||||
const CLASS_DEFAULT = 'classes.model.AddonsManager';
|
||||
|
||||
/**
|
||||
* The total number of columns.
|
||||
*/
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 18;
|
||||
|
||||
/**
|
||||
* The number of lazy-loaded columns.
|
||||
*/
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_ID field
|
||||
*/
|
||||
|
||||
/** the column name for the ADDON_ID field */
|
||||
const ADDON_ID = 'ADDONS_MANAGER.ADDON_ID';
|
||||
|
||||
/**
|
||||
* the column name for the STORE_ID field
|
||||
*/
|
||||
/** the column name for the STORE_ID field */
|
||||
const STORE_ID = 'ADDONS_MANAGER.STORE_ID';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_NAME field
|
||||
*/
|
||||
/** the column name for the ADDON_NAME field */
|
||||
const ADDON_NAME = 'ADDONS_MANAGER.ADDON_NAME';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_NICK field
|
||||
*/
|
||||
/** the column name for the ADDON_NICK field */
|
||||
const ADDON_NICK = 'ADDONS_MANAGER.ADDON_NICK';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_DOWNLOAD_FILENAME field
|
||||
*/
|
||||
/** the column name for the ADDON_DOWNLOAD_FILENAME field */
|
||||
const ADDON_DOWNLOAD_FILENAME = 'ADDONS_MANAGER.ADDON_DOWNLOAD_FILENAME';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_DESCRIPTION field
|
||||
*/
|
||||
/** the column name for the ADDON_DESCRIPTION field */
|
||||
const ADDON_DESCRIPTION = 'ADDONS_MANAGER.ADDON_DESCRIPTION';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_STATE field
|
||||
*/
|
||||
/** the column name for the ADDON_STATE field */
|
||||
const ADDON_STATE = 'ADDONS_MANAGER.ADDON_STATE';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_STATE_CHANGED field
|
||||
*/
|
||||
/** the column name for the ADDON_STATE_CHANGED field */
|
||||
const ADDON_STATE_CHANGED = 'ADDONS_MANAGER.ADDON_STATE_CHANGED';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_STATUS field
|
||||
*/
|
||||
/** the column name for the ADDON_STATUS field */
|
||||
const ADDON_STATUS = 'ADDONS_MANAGER.ADDON_STATUS';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_VERSION field
|
||||
*/
|
||||
/** the column name for the ADDON_VERSION field */
|
||||
const ADDON_VERSION = 'ADDONS_MANAGER.ADDON_VERSION';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_TYPE field
|
||||
*/
|
||||
/** the column name for the ADDON_TYPE field */
|
||||
const ADDON_TYPE = 'ADDONS_MANAGER.ADDON_TYPE';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_PUBLISHER field
|
||||
*/
|
||||
/** the column name for the ADDON_PUBLISHER field */
|
||||
const ADDON_PUBLISHER = 'ADDONS_MANAGER.ADDON_PUBLISHER';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_RELEASE_DATE field
|
||||
*/
|
||||
/** the column name for the ADDON_RELEASE_DATE field */
|
||||
const ADDON_RELEASE_DATE = 'ADDONS_MANAGER.ADDON_RELEASE_DATE';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_RELEASE_TYPE field
|
||||
*/
|
||||
/** the column name for the ADDON_RELEASE_TYPE field */
|
||||
const ADDON_RELEASE_TYPE = 'ADDONS_MANAGER.ADDON_RELEASE_TYPE';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_RELEASE_NOTES field
|
||||
*/
|
||||
/** the column name for the ADDON_RELEASE_NOTES field */
|
||||
const ADDON_RELEASE_NOTES = 'ADDONS_MANAGER.ADDON_RELEASE_NOTES';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_DOWNLOAD_URL field
|
||||
*/
|
||||
/** the column name for the ADDON_DOWNLOAD_URL field */
|
||||
const ADDON_DOWNLOAD_URL = 'ADDONS_MANAGER.ADDON_DOWNLOAD_URL';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_DOWNLOAD_PROGRESS field
|
||||
*/
|
||||
/** the column name for the ADDON_DOWNLOAD_PROGRESS field */
|
||||
const ADDON_DOWNLOAD_PROGRESS = 'ADDONS_MANAGER.ADDON_DOWNLOAD_PROGRESS';
|
||||
|
||||
/**
|
||||
* the column name for the ADDON_DOWNLOAD_MD5 field
|
||||
*/
|
||||
/** the column name for the ADDON_DOWNLOAD_MD5 field */
|
||||
const ADDON_DOWNLOAD_MD5 = 'ADDONS_MANAGER.ADDON_DOWNLOAD_MD5';
|
||||
|
||||
/**
|
||||
* The PHP to DB Name Mapping
|
||||
*/
|
||||
/** The PHP to DB Name Mapping */
|
||||
private static $phpNameMap = null;
|
||||
|
||||
|
||||
/**
|
||||
* holds an array of fieldnames
|
||||
*
|
||||
@@ -142,10 +96,10 @@ abstract class BaseAddonsManagerPeer
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('AddonId','StoreId','AddonName','AddonNick','AddonDownloadFilename','AddonDescription','AddonState','AddonStateChanged','AddonStatus','AddonVersion','AddonType','AddonPublisher','AddonReleaseDate','AddonReleaseType','AddonReleaseNotes','AddonDownloadUrl','AddonDownloadProgress','AddonDownloadMd5'),
|
||||
BasePeer::TYPE_COLNAME => array (AddonsManagerPeer::ADDON_ID,AddonsManagerPeer::STORE_ID,AddonsManagerPeer::ADDON_NAME,AddonsManagerPeer::ADDON_NICK,AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME,AddonsManagerPeer::ADDON_DESCRIPTION,AddonsManagerPeer::ADDON_STATE,AddonsManagerPeer::ADDON_STATE_CHANGED,AddonsManagerPeer::ADDON_STATUS,AddonsManagerPeer::ADDON_VERSION,AddonsManagerPeer::ADDON_TYPE,AddonsManagerPeer::ADDON_PUBLISHER,AddonsManagerPeer::ADDON_RELEASE_DATE,AddonsManagerPeer::ADDON_RELEASE_TYPE,AddonsManagerPeer::ADDON_RELEASE_NOTES,AddonsManagerPeer::ADDON_DOWNLOAD_URL,AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS,AddonsManagerPeer::ADDON_DOWNLOAD_MD5),
|
||||
BasePeer::TYPE_FIELDNAME => array ('ADDON_ID','STORE_ID','ADDON_NAME','ADDON_NICK','ADDON_DOWNLOAD_FILENAME','ADDON_DESCRIPTION','ADDON_STATE','ADDON_STATE_CHANGED','ADDON_STATUS','ADDON_VERSION','ADDON_TYPE','ADDON_PUBLISHER','ADDON_RELEASE_DATE','ADDON_RELEASE_TYPE','ADDON_RELEASE_NOTES','ADDON_DOWNLOAD_URL','ADDON_DOWNLOAD_PROGRESS','ADDON_DOWNLOAD_MD5'),
|
||||
BasePeer::TYPE_NUM => array (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17)
|
||||
BasePeer::TYPE_PHPNAME => array ('AddonId', 'StoreId', 'AddonName', 'AddonNick', 'AddonDownloadFilename', 'AddonDescription', 'AddonState', 'AddonStateChanged', 'AddonStatus', 'AddonVersion', 'AddonType', 'AddonPublisher', 'AddonReleaseDate', 'AddonReleaseType', 'AddonReleaseNotes', 'AddonDownloadUrl', 'AddonDownloadProgress', 'AddonDownloadMd5', ),
|
||||
BasePeer::TYPE_COLNAME => array (AddonsManagerPeer::ADDON_ID, AddonsManagerPeer::STORE_ID, AddonsManagerPeer::ADDON_NAME, AddonsManagerPeer::ADDON_NICK, AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME, AddonsManagerPeer::ADDON_DESCRIPTION, AddonsManagerPeer::ADDON_STATE, AddonsManagerPeer::ADDON_STATE_CHANGED, AddonsManagerPeer::ADDON_STATUS, AddonsManagerPeer::ADDON_VERSION, AddonsManagerPeer::ADDON_TYPE, AddonsManagerPeer::ADDON_PUBLISHER, AddonsManagerPeer::ADDON_RELEASE_DATE, AddonsManagerPeer::ADDON_RELEASE_TYPE, AddonsManagerPeer::ADDON_RELEASE_NOTES, AddonsManagerPeer::ADDON_DOWNLOAD_URL, AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS, AddonsManagerPeer::ADDON_DOWNLOAD_MD5, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('ADDON_ID', 'STORE_ID', 'ADDON_NAME', 'ADDON_NICK', 'ADDON_DOWNLOAD_FILENAME', 'ADDON_DESCRIPTION', 'ADDON_STATE', 'ADDON_STATE_CHANGED', 'ADDON_STATUS', 'ADDON_VERSION', 'ADDON_TYPE', 'ADDON_PUBLISHER', 'ADDON_RELEASE_DATE', 'ADDON_RELEASE_TYPE', 'ADDON_RELEASE_NOTES', 'ADDON_DOWNLOAD_URL', 'ADDON_DOWNLOAD_PROGRESS', 'ADDON_DOWNLOAD_MD5', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -155,14 +109,13 @@ abstract class BaseAddonsManagerPeer
|
||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('AddonId' => 0,'StoreId' => 1,'AddonName' => 2,'AddonNick' => 3,'AddonDownloadFilename' => 4,'AddonDescription' => 5,'AddonState' => 6,'AddonStateChanged' => 7,'AddonStatus' => 8,'AddonVersion' => 9,'AddonType' => 10,'AddonPublisher' => 11,'AddonReleaseDate' => 12,'AddonReleaseType' => 13,'AddonReleaseNotes' => 14,'AddonDownloadUrl' => 15,'AddonDownloadProgress' => 16,'AddonDownloadMd5' => 17),
|
||||
BasePeer::TYPE_COLNAME => array (AddonsManagerPeer::ADDON_ID => 0,AddonsManagerPeer::STORE_ID => 1,AddonsManagerPeer::ADDON_NAME => 2,AddonsManagerPeer::ADDON_NICK => 3,AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME => 4,AddonsManagerPeer::ADDON_DESCRIPTION => 5,AddonsManagerPeer::ADDON_STATE => 6,AddonsManagerPeer::ADDON_STATE_CHANGED => 7,AddonsManagerPeer::ADDON_STATUS => 8,AddonsManagerPeer::ADDON_VERSION => 9,AddonsManagerPeer::ADDON_TYPE => 10,AddonsManagerPeer::ADDON_PUBLISHER => 11,AddonsManagerPeer::ADDON_RELEASE_DATE => 12,AddonsManagerPeer::ADDON_RELEASE_TYPE => 13,AddonsManagerPeer::ADDON_RELEASE_NOTES => 14,AddonsManagerPeer::ADDON_DOWNLOAD_URL => 15,AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS => 16,AddonsManagerPeer::ADDON_DOWNLOAD_MD5 => 17),
|
||||
BasePeer::TYPE_FIELDNAME => array ('ADDON_ID' => 0,'STORE_ID' => 1,'ADDON_NAME' => 2,'ADDON_NICK' => 3,'ADDON_DOWNLOAD_FILENAME' => 4,'ADDON_DESCRIPTION' => 5,'ADDON_STATE' => 6,'ADDON_STATE_CHANGED' => 7,'ADDON_STATUS' => 8,'ADDON_VERSION' => 9,'ADDON_TYPE' => 10,'ADDON_PUBLISHER' => 11,'ADDON_RELEASE_DATE' => 12,'ADDON_RELEASE_TYPE' => 13,'ADDON_RELEASE_NOTES' => 14,'ADDON_DOWNLOAD_URL' => 15,'ADDON_DOWNLOAD_PROGRESS' => 16,'ADDON_DOWNLOAD_MD5' => 17),
|
||||
BasePeer::TYPE_NUM => array (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17)
|
||||
BasePeer::TYPE_PHPNAME => array ('AddonId' => 0, 'StoreId' => 1, 'AddonName' => 2, 'AddonNick' => 3, 'AddonDownloadFilename' => 4, 'AddonDescription' => 5, 'AddonState' => 6, 'AddonStateChanged' => 7, 'AddonStatus' => 8, 'AddonVersion' => 9, 'AddonType' => 10, 'AddonPublisher' => 11, 'AddonReleaseDate' => 12, 'AddonReleaseType' => 13, 'AddonReleaseNotes' => 14, 'AddonDownloadUrl' => 15, 'AddonDownloadProgress' => 16, 'AddonDownloadMd5' => 17, ),
|
||||
BasePeer::TYPE_COLNAME => array (AddonsManagerPeer::ADDON_ID => 0, AddonsManagerPeer::STORE_ID => 1, AddonsManagerPeer::ADDON_NAME => 2, AddonsManagerPeer::ADDON_NICK => 3, AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME => 4, AddonsManagerPeer::ADDON_DESCRIPTION => 5, AddonsManagerPeer::ADDON_STATE => 6, AddonsManagerPeer::ADDON_STATE_CHANGED => 7, AddonsManagerPeer::ADDON_STATUS => 8, AddonsManagerPeer::ADDON_VERSION => 9, AddonsManagerPeer::ADDON_TYPE => 10, AddonsManagerPeer::ADDON_PUBLISHER => 11, AddonsManagerPeer::ADDON_RELEASE_DATE => 12, AddonsManagerPeer::ADDON_RELEASE_TYPE => 13, AddonsManagerPeer::ADDON_RELEASE_NOTES => 14, AddonsManagerPeer::ADDON_DOWNLOAD_URL => 15, AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS => 16, AddonsManagerPeer::ADDON_DOWNLOAD_MD5 => 17, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('ADDON_ID' => 0, 'STORE_ID' => 1, 'ADDON_NAME' => 2, 'ADDON_NICK' => 3, 'ADDON_DOWNLOAD_FILENAME' => 4, 'ADDON_DESCRIPTION' => 5, 'ADDON_STATE' => 6, 'ADDON_STATE_CHANGED' => 7, 'ADDON_STATUS' => 8, 'ADDON_VERSION' => 9, 'ADDON_TYPE' => 10, 'ADDON_PUBLISHER' => 11, 'ADDON_RELEASE_DATE' => 12, 'ADDON_RELEASE_TYPE' => 13, 'ADDON_RELEASE_NOTES' => 14, 'ADDON_DOWNLOAD_URL' => 15, 'ADDON_DOWNLOAD_PROGRESS' => 16, 'ADDON_DOWNLOAD_MD5' => 17, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
* @return MapBuilder the map builder for this peer
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
@@ -172,7 +125,6 @@ abstract class BaseAddonsManagerPeer
|
||||
include_once 'classes/model/map/AddonsManagerMapBuilder.php';
|
||||
return BasePeer::getMapBuilder('classes.model.map.AddonsManagerMapBuilder');
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a map (hash) of PHP names to DB column names.
|
||||
*
|
||||
@@ -194,7 +146,6 @@ abstract class BaseAddonsManagerPeer
|
||||
}
|
||||
return self::$phpNameMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Translates a fieldname to another type
|
||||
*
|
||||
@@ -239,7 +190,6 @@ abstract class BaseAddonsManagerPeer
|
||||
* $c->addAlias("alias1", TablePeer::TABLE_NAME);
|
||||
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
||||
* </code>
|
||||
*
|
||||
* @param string $alias The alias for the current table.
|
||||
* @param string $column The column name for current table. (i.e. AddonsManagerPeer::COLUMN_NAME).
|
||||
* @return string
|
||||
@@ -338,7 +288,6 @@ abstract class BaseAddonsManagerPeer
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to select one object from the DB.
|
||||
*
|
||||
@@ -358,7 +307,6 @@ abstract class BaseAddonsManagerPeer
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to do selects.
|
||||
*
|
||||
@@ -372,7 +320,6 @@ abstract class BaseAddonsManagerPeer
|
||||
{
|
||||
return AddonsManagerPeer::populateObjects(AddonsManagerPeer::doSelectRS($criteria, $con));
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepares the Criteria object and uses the parent doSelect()
|
||||
* method to get a ResultSet.
|
||||
@@ -405,7 +352,6 @@ abstract class BaseAddonsManagerPeer
|
||||
// rows indexed numerically.
|
||||
return BasePeer::doSelect($criteria, $con);
|
||||
}
|
||||
|
||||
/**
|
||||
* The returned array will contain objects of the default type or
|
||||
* objects that inherit from the default.
|
||||
@@ -430,11 +376,9 @@ abstract class BaseAddonsManagerPeer
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the TableMap related to this peer.
|
||||
* This method is not needed for general use but a specific application could have a need.
|
||||
*
|
||||
* @return TableMap
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
@@ -479,6 +423,7 @@ abstract class BaseAddonsManagerPeer
|
||||
$criteria = $values->buildCriteria(); // build Criteria from AddonsManager object
|
||||
}
|
||||
|
||||
|
||||
// Set the correct dbName
|
||||
$criteria->setDbName(self::DATABASE_NAME);
|
||||
|
||||
@@ -499,8 +444,8 @@ abstract class BaseAddonsManagerPeer
|
||||
/**
|
||||
* Method perform an UPDATE on the database, given a AddonsManager or Criteria object.
|
||||
*
|
||||
* @param mixed $values Criteria or AddonsManager object containing data that is used to create the UPDATE statement.
|
||||
* @param Connection $con The connection to use (specify Connection object to exert more control over transactions).
|
||||
* @param mixed $values Criteria or AddonsManager object containing data create the UPDATE statement.
|
||||
* @param Connection $con The connection to use (specify Connection exert more control over transactions).
|
||||
* @return int The number of affected rows (if supported by underlying database driver).
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
@@ -523,7 +468,6 @@ abstract class BaseAddonsManagerPeer
|
||||
$selectCriteria->add(AddonsManagerPeer::STORE_ID, $criteria->remove(AddonsManagerPeer::STORE_ID), $comparison);
|
||||
|
||||
} else {
|
||||
// $values is AddonsManager object
|
||||
$criteria = $values->buildCriteria(); // gets full criteria
|
||||
$selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
|
||||
}
|
||||
@@ -564,7 +508,8 @@ abstract class BaseAddonsManagerPeer
|
||||
* @param mixed $values Criteria or AddonsManager object or primary key or array of primary keys
|
||||
* which is used to create the DELETE statement
|
||||
* @param Connection $con the connection to use
|
||||
* @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows
|
||||
* @return int The number of affected rows (if supported by underlying database driver).
|
||||
* This includes CASCADE-related rows
|
||||
* if supported by native driver or if emulated using Propel.
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
@@ -578,6 +523,7 @@ abstract class BaseAddonsManagerPeer
|
||||
if ($values instanceof Criteria) {
|
||||
$criteria = clone $values; // rename for clarity
|
||||
} elseif ($values instanceof AddonsManager) {
|
||||
|
||||
$criteria = $values->buildPkeyCriteria();
|
||||
} else {
|
||||
// it must be the primary key
|
||||
@@ -587,15 +533,15 @@ abstract class BaseAddonsManagerPeer
|
||||
// values
|
||||
if (count($values) == count($values, COUNT_RECURSIVE)) {
|
||||
// array is not multi-dimensional
|
||||
$values = array (
|
||||
$values
|
||||
);
|
||||
$values = array($values);
|
||||
}
|
||||
$vals = array();
|
||||
foreach ($values as $value) {
|
||||
|
||||
$vals[0][] = $value[0];
|
||||
$vals[1][] = $value[1];
|
||||
}
|
||||
|
||||
$criteria->add(AddonsManagerPeer::ADDON_ID, $vals[0], Criteria::IN);
|
||||
$criteria->add(AddonsManagerPeer::STORE_ID, $vals[1], Criteria::IN);
|
||||
}
|
||||
@@ -640,9 +586,7 @@ abstract class BaseAddonsManagerPeer
|
||||
$tableMap = $dbMap->getTable(AddonsManagerPeer::TABLE_NAME);
|
||||
|
||||
if (! is_array($cols)) {
|
||||
$cols = array (
|
||||
$cols
|
||||
);
|
||||
$cols = array($cols);
|
||||
}
|
||||
|
||||
foreach ($cols as $colName) {
|
||||
@@ -660,10 +604,8 @@ abstract class BaseAddonsManagerPeer
|
||||
|
||||
/**
|
||||
* Retrieve object using using composite pkey values.
|
||||
*
|
||||
* @param string $addon_id
|
||||
* @param string $store_id
|
||||
*
|
||||
* @param Connection $con
|
||||
* @return AddonsManager
|
||||
*/
|
||||
@@ -681,6 +623,7 @@ abstract class BaseAddonsManagerPeer
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// static code to register the map builder for this Peer with the main Propel class
|
||||
if (Propel::isInit()) {
|
||||
// the MapBuilder classes register themselves with Propel during initialization
|
||||
|
||||
@@ -4,6 +4,7 @@ require_once 'propel/om/BaseObject.php';
|
||||
|
||||
require_once 'propel/om/Persistent.php';
|
||||
|
||||
|
||||
include_once 'propel/util/Criteria.php';
|
||||
|
||||
include_once 'classes/model/AddonsStorePeer.php';
|
||||
@@ -22,42 +23,36 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
* The Peer class.
|
||||
* Instance provides a convenient way of calling static methods on a class
|
||||
* that calling code may not be able to identify.
|
||||
*
|
||||
* @var AddonsStorePeer
|
||||
*/
|
||||
protected static $peer;
|
||||
|
||||
/**
|
||||
* The value for the store_id field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $store_id;
|
||||
|
||||
/**
|
||||
* The value for the store_version field.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $store_version;
|
||||
|
||||
/**
|
||||
* The value for the store_location field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $store_location;
|
||||
|
||||
/**
|
||||
* The value for the store_type field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $store_type;
|
||||
|
||||
/**
|
||||
* The value for the store_last_updated field.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $store_last_updated;
|
||||
@@ -65,7 +60,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
/**
|
||||
* Flag to prevent endless save loop, if this object is referenced
|
||||
* by another object which falls in this transaction.
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
protected $alreadyInSave = false;
|
||||
@@ -73,7 +67,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
/**
|
||||
* Flag to prevent endless validation loop, if this object is referenced
|
||||
* by another object which falls in this transaction.
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
protected $alreadyInValidation = false;
|
||||
@@ -85,6 +78,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getStoreId()
|
||||
{
|
||||
|
||||
return $this->store_id;
|
||||
}
|
||||
|
||||
@@ -95,6 +89,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getStoreVersion()
|
||||
{
|
||||
|
||||
return $this->store_version;
|
||||
}
|
||||
|
||||
@@ -105,6 +100,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getStoreLocation()
|
||||
{
|
||||
|
||||
return $this->store_location;
|
||||
}
|
||||
|
||||
@@ -115,6 +111,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getStoreType()
|
||||
{
|
||||
|
||||
return $this->store_type;
|
||||
}
|
||||
|
||||
@@ -128,14 +125,15 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getStoreLastUpdated($format = 'Y-m-d H:i:s')
|
||||
{
|
||||
|
||||
if ($this->store_last_updated === null || $this->store_last_updated === '') {
|
||||
return null;
|
||||
} elseif (!is_int($this->store_last_updated)) {
|
||||
// a non-timestamp value was set externally, so we convert it
|
||||
$ts = strtotime($this->store_last_updated);
|
||||
if ($ts === -1 || $ts === false) {
|
||||
// in PHP 5.1 return value changes to FALSE
|
||||
throw new PropelException( "Unable to parse value of [store_last_updated] as date/time value: " . var_export( $this->store_last_updated, true ) );
|
||||
throw new PropelException("Unable to parse value of [store_last_updated] as date/time value: " .
|
||||
var_export($this->store_last_updated, true));
|
||||
}
|
||||
} else {
|
||||
$ts = $this->store_last_updated;
|
||||
@@ -157,6 +155,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setStoreId($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)) {
|
||||
@@ -167,6 +166,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
$this->store_id = $v;
|
||||
$this->modifiedColumns[] = AddonsStorePeer::STORE_ID;
|
||||
}
|
||||
|
||||
} // setStoreId()
|
||||
|
||||
/**
|
||||
@@ -177,15 +177,18 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setStoreVersion($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is integer,
|
||||
// we will cast the input value to an int (if it is not).
|
||||
if ($v !== null && !is_int($v) && is_numeric($v)) {
|
||||
$v = (int) $v;
|
||||
}
|
||||
|
||||
if ($this->store_version !== $v) {
|
||||
$this->store_version = $v;
|
||||
$this->modifiedColumns[] = AddonsStorePeer::STORE_VERSION;
|
||||
}
|
||||
|
||||
} // setStoreVersion()
|
||||
|
||||
/**
|
||||
@@ -196,15 +199,18 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setStoreLocation($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->store_location !== $v) {
|
||||
$this->store_location = $v;
|
||||
$this->modifiedColumns[] = AddonsStorePeer::STORE_LOCATION;
|
||||
}
|
||||
|
||||
} // setStoreLocation()
|
||||
|
||||
/**
|
||||
@@ -215,15 +221,18 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setStoreType($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->store_type !== $v) {
|
||||
$this->store_type = $v;
|
||||
$this->modifiedColumns[] = AddonsStorePeer::STORE_TYPE;
|
||||
}
|
||||
|
||||
} // setStoreType()
|
||||
|
||||
/**
|
||||
@@ -234,11 +243,16 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setStoreLastUpdated($v)
|
||||
{
|
||||
|
||||
if ($v !== null && !is_int($v)) {
|
||||
$ts = strtotime($v);
|
||||
//Date/time accepts null values
|
||||
if ($v == '') {
|
||||
$ts = null;
|
||||
}
|
||||
if ($ts === -1 || $ts === false) {
|
||||
// in PHP 5.1 return value changes to FALSE
|
||||
throw new PropelException( "Unable to parse date/time value for [store_last_updated] from input: " . var_export( $v, true ) );
|
||||
throw new PropelException("Unable to parse date/time value for [store_last_updated] from input: " .
|
||||
var_export($v, true));
|
||||
}
|
||||
} else {
|
||||
$ts = $v;
|
||||
@@ -247,6 +261,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
$this->store_last_updated = $ts;
|
||||
$this->modifiedColumns[] = AddonsStorePeer::STORE_LAST_UPDATED;
|
||||
}
|
||||
|
||||
} // setStoreLastUpdated()
|
||||
|
||||
/**
|
||||
@@ -302,9 +317,11 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
if ($this->isDeleted()) {
|
||||
throw new PropelException("This object has already been deleted.");
|
||||
}
|
||||
|
||||
if ($con === null) {
|
||||
$con = Propel::getConnection(AddonsStorePeer::DATABASE_NAME);
|
||||
}
|
||||
|
||||
try {
|
||||
$con->begin();
|
||||
AddonsStorePeer::doDelete($this, $con);
|
||||
@@ -317,13 +334,12 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
/**
|
||||
* Stores the object in the database.
|
||||
* If the object is new,
|
||||
* Stores the object in the database. If the object is new,
|
||||
* it inserts it; otherwise an update is performed. This method
|
||||
* wraps the doSave() worker method in a transaction.
|
||||
*
|
||||
* @param Connection $con
|
||||
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
|
||||
* @return int The number of rows affected by this insert/update
|
||||
* @throws PropelException
|
||||
* @see doSave()
|
||||
*/
|
||||
@@ -332,9 +348,11 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
if ($this->isDeleted()) {
|
||||
throw new PropelException("You cannot save an object that has been deleted.");
|
||||
}
|
||||
|
||||
if ($con === null) {
|
||||
$con = Propel::getConnection(AddonsStorePeer::DATABASE_NAME);
|
||||
}
|
||||
|
||||
try {
|
||||
$con->begin();
|
||||
$affectedRows = $this->doSave($con);
|
||||
@@ -353,7 +371,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
* All related objects are also updated in this method.
|
||||
*
|
||||
* @param Connection $con
|
||||
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
|
||||
* @return int The number of rows affected by this insert/update and any referring
|
||||
* @throws PropelException
|
||||
* @see save()
|
||||
*/
|
||||
@@ -362,6 +380,8 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
$affectedRows = 0; // initialize var to track total num of affected rows
|
||||
if (!$this->alreadyInSave) {
|
||||
$this->alreadyInSave = true;
|
||||
|
||||
|
||||
// If this object has been modified, then save it to the database.
|
||||
if ($this->isModified()) {
|
||||
if ($this->isNew()) {
|
||||
@@ -369,12 +389,14 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
|
||||
// should always be true here (even though technically
|
||||
// BasePeer::doInsert() can insert multiple rows).
|
||||
|
||||
$this->setNew(false);
|
||||
} else {
|
||||
$affectedRows += AddonsStorePeer::doUpdate($this, $con);
|
||||
}
|
||||
$this->resetModified(); // [HL] After being saved an object is no longer 'modified'
|
||||
}
|
||||
|
||||
$this->alreadyInSave = false;
|
||||
}
|
||||
return $affectedRows;
|
||||
@@ -382,7 +404,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
|
||||
/**
|
||||
* Array of ValidationFailed objects.
|
||||
*
|
||||
* @var array ValidationFailed[]
|
||||
*/
|
||||
protected $validationFailures = array();
|
||||
@@ -430,19 +451,27 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
* an aggreagated array of ValidationFailed objects will be returned.
|
||||
*
|
||||
* @param array $columns Array of column names to validate.
|
||||
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
|
||||
* @return mixed <code>true</code> if all validations pass;
|
||||
array of <code>ValidationFailed</code> objects otherwise.
|
||||
*/
|
||||
protected function doValidate($columns = null)
|
||||
{
|
||||
if (!$this->alreadyInValidation) {
|
||||
$this->alreadyInValidation = true;
|
||||
$retval = null;
|
||||
|
||||
$failureMap = array();
|
||||
|
||||
|
||||
if (($retval = AddonsStorePeer::doValidate($this, $columns)) !== true) {
|
||||
$failureMap = array_merge($failureMap, $retval);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$this->alreadyInValidation = false;
|
||||
}
|
||||
|
||||
return (!empty($failureMap) ? $failureMap : true);
|
||||
}
|
||||
|
||||
@@ -510,7 +539,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
$keys[1] => $this->getStoreVersion(),
|
||||
$keys[2] => $this->getStoreLocation(),
|
||||
$keys[3] => $this->getStoreType(),
|
||||
$keys[4] => $this->getStoreLastUpdated()
|
||||
$keys[4] => $this->getStoreLastUpdated(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -583,18 +612,23 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
if (array_key_exists($keys[0], $arr)) {
|
||||
$this->setStoreId($arr[$keys[0]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[1], $arr)) {
|
||||
$this->setStoreVersion($arr[$keys[1]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[2], $arr)) {
|
||||
$this->setStoreLocation($arr[$keys[2]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[3], $arr)) {
|
||||
$this->setStoreType($arr[$keys[3]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[4], $arr)) {
|
||||
$this->setStoreLastUpdated($arr[$keys[4]]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -609,18 +643,24 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
if ($this->isColumnModified(AddonsStorePeer::STORE_ID)) {
|
||||
$criteria->add(AddonsStorePeer::STORE_ID, $this->store_id);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsStorePeer::STORE_VERSION)) {
|
||||
$criteria->add(AddonsStorePeer::STORE_VERSION, $this->store_version);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsStorePeer::STORE_LOCATION)) {
|
||||
$criteria->add(AddonsStorePeer::STORE_LOCATION, $this->store_location);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsStorePeer::STORE_TYPE)) {
|
||||
$criteria->add(AddonsStorePeer::STORE_TYPE, $this->store_type);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AddonsStorePeer::STORE_LAST_UPDATED)) {
|
||||
$criteria->add(AddonsStorePeer::STORE_LAST_UPDATED, $this->store_last_updated);
|
||||
}
|
||||
|
||||
|
||||
return $criteria;
|
||||
}
|
||||
|
||||
@@ -643,7 +683,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
|
||||
/**
|
||||
* Returns the primary key for this object (row).
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPrimaryKey()
|
||||
@@ -674,6 +713,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
*/
|
||||
public function copyInto($copyObj, $deepCopy = false)
|
||||
{
|
||||
|
||||
$copyObj->setStoreVersion($this->store_version);
|
||||
|
||||
$copyObj->setStoreLocation($this->store_location);
|
||||
@@ -682,9 +722,11 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
||||
|
||||
$copyObj->setStoreLastUpdated($this->store_last_updated);
|
||||
|
||||
|
||||
$copyObj->setNew(true);
|
||||
|
||||
$copyObj->setStoreId( null ); // this is a pkey column, so set to default value
|
||||
$copyObj->setStoreId(NULL); // this is a pkey column, so set to default value
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,61 +15,41 @@ include_once 'classes/model/AddonsStore.php';
|
||||
abstract class BaseAddonsStorePeer
|
||||
{
|
||||
|
||||
/**
|
||||
* the default database name for this class
|
||||
*/
|
||||
/** the default database name for this class */
|
||||
const DATABASE_NAME = 'workflow';
|
||||
|
||||
/**
|
||||
* the table name for this class
|
||||
*/
|
||||
/** the table name for this class */
|
||||
const TABLE_NAME = 'ADDONS_STORE';
|
||||
|
||||
/**
|
||||
* A class that can be returned by this peer.
|
||||
*/
|
||||
/** A class that can be returned by this peer. */
|
||||
const CLASS_DEFAULT = 'classes.model.AddonsStore';
|
||||
|
||||
/**
|
||||
* The total number of columns.
|
||||
*/
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 5;
|
||||
|
||||
/**
|
||||
* The number of lazy-loaded columns.
|
||||
*/
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
|
||||
/**
|
||||
* the column name for the STORE_ID field
|
||||
*/
|
||||
|
||||
/** the column name for the STORE_ID field */
|
||||
const STORE_ID = 'ADDONS_STORE.STORE_ID';
|
||||
|
||||
/**
|
||||
* the column name for the STORE_VERSION field
|
||||
*/
|
||||
/** the column name for the STORE_VERSION field */
|
||||
const STORE_VERSION = 'ADDONS_STORE.STORE_VERSION';
|
||||
|
||||
/**
|
||||
* the column name for the STORE_LOCATION field
|
||||
*/
|
||||
/** the column name for the STORE_LOCATION field */
|
||||
const STORE_LOCATION = 'ADDONS_STORE.STORE_LOCATION';
|
||||
|
||||
/**
|
||||
* the column name for the STORE_TYPE field
|
||||
*/
|
||||
/** the column name for the STORE_TYPE field */
|
||||
const STORE_TYPE = 'ADDONS_STORE.STORE_TYPE';
|
||||
|
||||
/**
|
||||
* the column name for the STORE_LAST_UPDATED field
|
||||
*/
|
||||
/** the column name for the STORE_LAST_UPDATED field */
|
||||
const STORE_LAST_UPDATED = 'ADDONS_STORE.STORE_LAST_UPDATED';
|
||||
|
||||
/**
|
||||
* The PHP to DB Name Mapping
|
||||
*/
|
||||
/** The PHP to DB Name Mapping */
|
||||
private static $phpNameMap = null;
|
||||
|
||||
|
||||
/**
|
||||
* holds an array of fieldnames
|
||||
*
|
||||
@@ -77,10 +57,10 @@ abstract class BaseAddonsStorePeer
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('StoreId','StoreVersion','StoreLocation','StoreType','StoreLastUpdated'),
|
||||
BasePeer::TYPE_COLNAME => array (AddonsStorePeer::STORE_ID,AddonsStorePeer::STORE_VERSION,AddonsStorePeer::STORE_LOCATION,AddonsStorePeer::STORE_TYPE,AddonsStorePeer::STORE_LAST_UPDATED),
|
||||
BasePeer::TYPE_FIELDNAME => array ('STORE_ID','STORE_VERSION','STORE_LOCATION','STORE_TYPE','STORE_LAST_UPDATED'),
|
||||
BasePeer::TYPE_NUM => array (0,1,2,3,4)
|
||||
BasePeer::TYPE_PHPNAME => array ('StoreId', 'StoreVersion', 'StoreLocation', 'StoreType', 'StoreLastUpdated', ),
|
||||
BasePeer::TYPE_COLNAME => array (AddonsStorePeer::STORE_ID, AddonsStorePeer::STORE_VERSION, AddonsStorePeer::STORE_LOCATION, AddonsStorePeer::STORE_TYPE, AddonsStorePeer::STORE_LAST_UPDATED, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('STORE_ID', 'STORE_VERSION', 'STORE_LOCATION', 'STORE_TYPE', 'STORE_LAST_UPDATED', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -90,14 +70,13 @@ abstract class BaseAddonsStorePeer
|
||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('StoreId' => 0,'StoreVersion' => 1,'StoreLocation' => 2,'StoreType' => 3,'StoreLastUpdated' => 4),
|
||||
BasePeer::TYPE_COLNAME => array (AddonsStorePeer::STORE_ID => 0,AddonsStorePeer::STORE_VERSION => 1,AddonsStorePeer::STORE_LOCATION => 2,AddonsStorePeer::STORE_TYPE => 3,AddonsStorePeer::STORE_LAST_UPDATED => 4),
|
||||
BasePeer::TYPE_FIELDNAME => array ('STORE_ID' => 0,'STORE_VERSION' => 1,'STORE_LOCATION' => 2,'STORE_TYPE' => 3,'STORE_LAST_UPDATED' => 4),
|
||||
BasePeer::TYPE_NUM => array (0,1,2,3,4)
|
||||
BasePeer::TYPE_PHPNAME => array ('StoreId' => 0, 'StoreVersion' => 1, 'StoreLocation' => 2, 'StoreType' => 3, 'StoreLastUpdated' => 4, ),
|
||||
BasePeer::TYPE_COLNAME => array (AddonsStorePeer::STORE_ID => 0, AddonsStorePeer::STORE_VERSION => 1, AddonsStorePeer::STORE_LOCATION => 2, AddonsStorePeer::STORE_TYPE => 3, AddonsStorePeer::STORE_LAST_UPDATED => 4, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('STORE_ID' => 0, 'STORE_VERSION' => 1, 'STORE_LOCATION' => 2, 'STORE_TYPE' => 3, 'STORE_LAST_UPDATED' => 4, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, )
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
* @return MapBuilder the map builder for this peer
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
@@ -107,7 +86,6 @@ abstract class BaseAddonsStorePeer
|
||||
include_once 'classes/model/map/AddonsStoreMapBuilder.php';
|
||||
return BasePeer::getMapBuilder('classes.model.map.AddonsStoreMapBuilder');
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a map (hash) of PHP names to DB column names.
|
||||
*
|
||||
@@ -129,7 +107,6 @@ abstract class BaseAddonsStorePeer
|
||||
}
|
||||
return self::$phpNameMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Translates a fieldname to another type
|
||||
*
|
||||
@@ -174,7 +151,6 @@ abstract class BaseAddonsStorePeer
|
||||
* $c->addAlias("alias1", TablePeer::TABLE_NAME);
|
||||
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
||||
* </code>
|
||||
*
|
||||
* @param string $alias The alias for the current table.
|
||||
* @param string $column The column name for current table. (i.e. AddonsStorePeer::COLUMN_NAME).
|
||||
* @return string
|
||||
@@ -247,7 +223,6 @@ abstract class BaseAddonsStorePeer
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to select one object from the DB.
|
||||
*
|
||||
@@ -267,7 +242,6 @@ abstract class BaseAddonsStorePeer
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to do selects.
|
||||
*
|
||||
@@ -281,7 +255,6 @@ abstract class BaseAddonsStorePeer
|
||||
{
|
||||
return AddonsStorePeer::populateObjects(AddonsStorePeer::doSelectRS($criteria, $con));
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepares the Criteria object and uses the parent doSelect()
|
||||
* method to get a ResultSet.
|
||||
@@ -314,7 +287,6 @@ abstract class BaseAddonsStorePeer
|
||||
// rows indexed numerically.
|
||||
return BasePeer::doSelect($criteria, $con);
|
||||
}
|
||||
|
||||
/**
|
||||
* The returned array will contain objects of the default type or
|
||||
* objects that inherit from the default.
|
||||
@@ -339,11 +311,9 @@ abstract class BaseAddonsStorePeer
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the TableMap related to this peer.
|
||||
* This method is not needed for general use but a specific application could have a need.
|
||||
*
|
||||
* @return TableMap
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
@@ -388,6 +358,7 @@ abstract class BaseAddonsStorePeer
|
||||
$criteria = $values->buildCriteria(); // build Criteria from AddonsStore object
|
||||
}
|
||||
|
||||
|
||||
// Set the correct dbName
|
||||
$criteria->setDbName(self::DATABASE_NAME);
|
||||
|
||||
@@ -408,8 +379,8 @@ abstract class BaseAddonsStorePeer
|
||||
/**
|
||||
* Method perform an UPDATE on the database, given a AddonsStore or Criteria object.
|
||||
*
|
||||
* @param mixed $values Criteria or AddonsStore object containing data that is used to create the UPDATE statement.
|
||||
* @param Connection $con The connection to use (specify Connection object to exert more control over transactions).
|
||||
* @param mixed $values Criteria or AddonsStore object containing data create the UPDATE statement.
|
||||
* @param Connection $con The connection to use (specify Connection exert more control over transactions).
|
||||
* @return int The number of affected rows (if supported by underlying database driver).
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
@@ -424,16 +395,18 @@ abstract class BaseAddonsStorePeer
|
||||
|
||||
if ($values instanceof Criteria) {
|
||||
$criteria = clone $values; // rename for clarity
|
||||
|
||||
$comparison = $criteria->getComparison(AddonsStorePeer::STORE_ID);
|
||||
$selectCriteria->add(AddonsStorePeer::STORE_ID, $criteria->remove(AddonsStorePeer::STORE_ID), $comparison);
|
||||
|
||||
} else {
|
||||
// $values is AddonsStore object
|
||||
$criteria = $values->buildCriteria(); // gets full criteria
|
||||
$selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
|
||||
}
|
||||
|
||||
// set the correct dbName
|
||||
$criteria->setDbName(self::DATABASE_NAME);
|
||||
|
||||
return BasePeer::doUpdate($selectCriteria, $criteria, $con);
|
||||
}
|
||||
|
||||
@@ -467,7 +440,8 @@ abstract class BaseAddonsStorePeer
|
||||
* @param mixed $values Criteria or AddonsStore object or primary key or array of primary keys
|
||||
* which is used to create the DELETE statement
|
||||
* @param Connection $con the connection to use
|
||||
* @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows
|
||||
* @return int The number of affected rows (if supported by underlying database driver).
|
||||
* This includes CASCADE-related rows
|
||||
* if supported by native driver or if emulated using Propel.
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
@@ -481,12 +455,14 @@ abstract class BaseAddonsStorePeer
|
||||
if ($values instanceof Criteria) {
|
||||
$criteria = clone $values; // rename for clarity
|
||||
} elseif ($values instanceof AddonsStore) {
|
||||
|
||||
$criteria = $values->buildPkeyCriteria();
|
||||
} else {
|
||||
// it must be the primary key
|
||||
$criteria = new Criteria(self::DATABASE_NAME);
|
||||
$criteria->add(AddonsStorePeer::STORE_ID, (array) $values, Criteria::IN);
|
||||
}
|
||||
|
||||
// Set the correct dbName
|
||||
$criteria->setDbName(self::DATABASE_NAME);
|
||||
|
||||
@@ -496,6 +472,7 @@ abstract class BaseAddonsStorePeer
|
||||
// use transaction because $criteria could contain info
|
||||
// for more than one table or we could emulating ON DELETE CASCADE, etc.
|
||||
$con->begin();
|
||||
|
||||
$affectedRows += BasePeer::doDelete($criteria, $con);
|
||||
$con->commit();
|
||||
return $affectedRows;
|
||||
@@ -520,13 +497,15 @@ abstract class BaseAddonsStorePeer
|
||||
public static function doValidate(AddonsStore $obj, $cols = null)
|
||||
{
|
||||
$columns = array();
|
||||
|
||||
if ($cols) {
|
||||
$dbMap = Propel::getDatabaseMap(AddonsStorePeer::DATABASE_NAME);
|
||||
$tableMap = $dbMap->getTable(AddonsStorePeer::TABLE_NAME);
|
||||
|
||||
if (! is_array($cols)) {
|
||||
$cols = array (
|
||||
$cols);
|
||||
$cols = array($cols);
|
||||
}
|
||||
|
||||
foreach ($cols as $colName) {
|
||||
if ($tableMap->containsColumn($colName)) {
|
||||
$get = 'get' . $tableMap->getColumn($colName)->getPhpName();
|
||||
@@ -536,6 +515,7 @@ abstract class BaseAddonsStorePeer
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
return BasePeer::doValidate(AddonsStorePeer::DATABASE_NAME, AddonsStorePeer::TABLE_NAME, $columns);
|
||||
}
|
||||
|
||||
@@ -556,6 +536,7 @@ abstract class BaseAddonsStorePeer
|
||||
|
||||
$criteria->add(AddonsStorePeer::STORE_ID, $pk);
|
||||
|
||||
|
||||
$v = AddonsStorePeer::doSelect($criteria, $con);
|
||||
|
||||
return !empty($v) > 0 ? $v[0] : null;
|
||||
@@ -587,6 +568,7 @@ abstract class BaseAddonsStorePeer
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// static code to register the map builder for this Peer with the main Propel class
|
||||
if (Propel::isInit()) {
|
||||
// the MapBuilder classes register themselves with Propel during initialization
|
||||
|
||||
@@ -4,6 +4,7 @@ require_once 'propel/om/BaseObject.php';
|
||||
|
||||
require_once 'propel/om/Persistent.php';
|
||||
|
||||
|
||||
include_once 'propel/util/Criteria.php';
|
||||
|
||||
include_once 'classes/model/LicenseManagerPeer.php';
|
||||
@@ -12,7 +13,8 @@ include_once 'classes/model/LicenseManagerPeer.php';
|
||||
* Base class that represents a row from the 'LICENSE_MANAGER' table.
|
||||
*
|
||||
*
|
||||
* @package classes.model.om
|
||||
*
|
||||
* @package workflow.classes.model.om
|
||||
*/
|
||||
abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
{
|
||||
@@ -21,77 +23,66 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
* The Peer class.
|
||||
* Instance provides a convenient way of calling static methods on a class
|
||||
* that calling code may not be able to identify.
|
||||
*
|
||||
* @var LicenseManagerPeer
|
||||
*/
|
||||
protected static $peer;
|
||||
|
||||
/**
|
||||
* The value for the license_uid field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $license_uid = '';
|
||||
protected $license_uid;
|
||||
|
||||
/**
|
||||
* The value for the license_user field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $license_user = '0';
|
||||
|
||||
/**
|
||||
* The value for the license_start field.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $license_start = 0;
|
||||
|
||||
/**
|
||||
* The value for the license_end field.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $license_end = 0;
|
||||
|
||||
/**
|
||||
* The value for the license_span field.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $license_span = 0;
|
||||
|
||||
/**
|
||||
* The value for the license_status field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $license_status = '';
|
||||
|
||||
/**
|
||||
* The value for the license_data field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $license_data;
|
||||
|
||||
/**
|
||||
* The value for the license_path field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $license_path = '0';
|
||||
|
||||
/**
|
||||
* The value for the license_workspace field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $license_workspace = '0';
|
||||
|
||||
/**
|
||||
* The value for the license_type field.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $license_type = '0';
|
||||
@@ -99,7 +90,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
/**
|
||||
* Flag to prevent endless save loop, if this object is referenced
|
||||
* by another object which falls in this transaction.
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
protected $alreadyInSave = false;
|
||||
@@ -107,7 +97,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
/**
|
||||
* Flag to prevent endless validation loop, if this object is referenced
|
||||
* by another object which falls in this transaction.
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
protected $alreadyInValidation = false;
|
||||
@@ -119,6 +108,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getLicenseUid()
|
||||
{
|
||||
|
||||
return $this->license_uid;
|
||||
}
|
||||
|
||||
@@ -129,6 +119,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getLicenseUser()
|
||||
{
|
||||
|
||||
return $this->license_user;
|
||||
}
|
||||
|
||||
@@ -139,6 +130,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getLicenseStart()
|
||||
{
|
||||
|
||||
return $this->license_start;
|
||||
}
|
||||
|
||||
@@ -149,6 +141,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getLicenseEnd()
|
||||
{
|
||||
|
||||
return $this->license_end;
|
||||
}
|
||||
|
||||
@@ -159,6 +152,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getLicenseSpan()
|
||||
{
|
||||
|
||||
return $this->license_span;
|
||||
}
|
||||
|
||||
@@ -169,6 +163,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getLicenseStatus()
|
||||
{
|
||||
|
||||
return $this->license_status;
|
||||
}
|
||||
|
||||
@@ -179,6 +174,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getLicenseData()
|
||||
{
|
||||
|
||||
return $this->license_data;
|
||||
}
|
||||
|
||||
@@ -189,6 +185,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getLicensePath()
|
||||
{
|
||||
|
||||
return $this->license_path;
|
||||
}
|
||||
|
||||
@@ -199,6 +196,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getLicenseWorkspace()
|
||||
{
|
||||
|
||||
return $this->license_workspace;
|
||||
}
|
||||
|
||||
@@ -209,6 +207,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function getLicenseType()
|
||||
{
|
||||
|
||||
return $this->license_type;
|
||||
}
|
||||
|
||||
@@ -220,16 +219,18 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setLicenseUid($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->license_uid !== $v || $v === '') {
|
||||
if ($this->license_uid !== $v) {
|
||||
$this->license_uid = $v;
|
||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_UID;
|
||||
}
|
||||
|
||||
} // setLicenseUid()
|
||||
|
||||
/**
|
||||
@@ -240,6 +241,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setLicenseUser($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)) {
|
||||
@@ -250,6 +252,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
$this->license_user = $v;
|
||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_USER;
|
||||
}
|
||||
|
||||
} // setLicenseUser()
|
||||
|
||||
/**
|
||||
@@ -260,15 +263,18 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setLicenseStart($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is integer,
|
||||
// we will cast the input value to an int (if it is not).
|
||||
if ($v !== null && !is_int($v) && is_numeric($v)) {
|
||||
$v = (int) $v;
|
||||
}
|
||||
|
||||
if ($this->license_start !== $v || $v === 0) {
|
||||
$this->license_start = $v;
|
||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_START;
|
||||
}
|
||||
|
||||
} // setLicenseStart()
|
||||
|
||||
/**
|
||||
@@ -279,6 +285,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setLicenseEnd($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is integer,
|
||||
// we will cast the input value to an int (if it is not).
|
||||
if ($v !== null && !is_int($v) && is_numeric($v)) {
|
||||
@@ -300,6 +307,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setLicenseSpan($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is integer,
|
||||
// we will cast the input value to an int (if it is not).
|
||||
if ($v !== null && !is_int($v) && is_numeric($v)) {
|
||||
@@ -310,6 +318,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
$this->license_span = $v;
|
||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_SPAN;
|
||||
}
|
||||
|
||||
} // setLicenseSpan()
|
||||
|
||||
/**
|
||||
@@ -320,6 +329,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setLicenseStatus($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)) {
|
||||
@@ -330,6 +340,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
$this->license_status = $v;
|
||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_STATUS;
|
||||
}
|
||||
|
||||
} // setLicenseStatus()
|
||||
|
||||
/**
|
||||
@@ -340,6 +351,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setLicenseData($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)) {
|
||||
@@ -361,15 +373,18 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setLicensePath($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->license_path !== $v || $v === '0') {
|
||||
$this->license_path = $v;
|
||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_PATH;
|
||||
}
|
||||
|
||||
} // setLicensePath()
|
||||
|
||||
/**
|
||||
@@ -380,6 +395,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
*/
|
||||
public function setLicenseWorkspace($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)) {
|
||||
@@ -390,6 +406,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
$this->license_workspace = $v;
|
||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_WORKSPACE;
|
||||
}
|
||||
|
||||
} // setLicenseWorkspace()
|
||||
|
||||
/**
|
||||
@@ -411,6 +428,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
$this->license_type = $v;
|
||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_TYPE;
|
||||
}
|
||||
|
||||
} // setLicenseType()
|
||||
|
||||
/**
|
||||
@@ -493,13 +511,12 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
/**
|
||||
* Stores the object in the database.
|
||||
* If the object is new,
|
||||
* Stores the object in the database. If the object is new,
|
||||
* it inserts it; otherwise an update is performed. This method
|
||||
* wraps the doSave() worker method in a transaction.
|
||||
*
|
||||
* @param Connection $con
|
||||
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
|
||||
* @return int The number of rows affected by this insert/update
|
||||
* @throws PropelException
|
||||
* @see doSave()
|
||||
*/
|
||||
@@ -531,7 +548,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
* All related objects are also updated in this method.
|
||||
*
|
||||
* @param Connection $con
|
||||
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
|
||||
* @return int The number of rows affected by this insert/update and any referring
|
||||
* @throws PropelException
|
||||
* @see save()
|
||||
*/
|
||||
@@ -541,6 +558,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
if (!$this->alreadyInSave) {
|
||||
$this->alreadyInSave = true;
|
||||
|
||||
|
||||
// If this object has been modified, then save it to the database.
|
||||
if ($this->isModified()) {
|
||||
if ($this->isNew()) {
|
||||
@@ -548,12 +566,14 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
|
||||
// should always be true here (even though technically
|
||||
// BasePeer::doInsert() can insert multiple rows).
|
||||
|
||||
$this->setNew(false);
|
||||
} else {
|
||||
$affectedRows += LicenseManagerPeer::doUpdate($this, $con);
|
||||
}
|
||||
$this->resetModified(); // [HL] After being saved an object is no longer 'modified'
|
||||
}
|
||||
|
||||
$this->alreadyInSave = false;
|
||||
}
|
||||
return $affectedRows;
|
||||
@@ -561,7 +581,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
|
||||
/**
|
||||
* Array of ValidationFailed objects.
|
||||
*
|
||||
* @var array ValidationFailed[]
|
||||
*/
|
||||
protected $validationFailures = array();
|
||||
@@ -609,7 +628,8 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
* an aggreagated array of ValidationFailed objects will be returned.
|
||||
*
|
||||
* @param array $columns Array of column names to validate.
|
||||
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
|
||||
* @return mixed <code>true</code> if all validations pass;
|
||||
array of <code>ValidationFailed</code> objects otherwise.
|
||||
*/
|
||||
protected function doValidate($columns = null)
|
||||
{
|
||||
@@ -619,10 +639,13 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
|
||||
$failureMap = array();
|
||||
|
||||
|
||||
if (($retval = LicenseManagerPeer::doValidate($this, $columns)) !== true) {
|
||||
$failureMap = array_merge($failureMap, $retval);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$this->alreadyInValidation = false;
|
||||
}
|
||||
|
||||
@@ -687,7 +710,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
default:
|
||||
return null;
|
||||
break;
|
||||
}
|
||||
} // switch()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -713,7 +736,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
$keys[6] => $this->getLicenseData(),
|
||||
$keys[7] => $this->getLicensePath(),
|
||||
$keys[8] => $this->getLicenseWorkspace(),
|
||||
$keys[9] => $this->getLicenseType()
|
||||
$keys[9] => $this->getLicenseType(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -801,33 +824,43 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
if (array_key_exists($keys[0], $arr)) {
|
||||
$this->setLicenseUid($arr[$keys[0]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[1], $arr)) {
|
||||
$this->setLicenseUser($arr[$keys[1]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[2], $arr)) {
|
||||
$this->setLicenseStart($arr[$keys[2]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[3], $arr)) {
|
||||
$this->setLicenseEnd($arr[$keys[3]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[4], $arr)) {
|
||||
$this->setLicenseSpan($arr[$keys[4]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[5], $arr)) {
|
||||
$this->setLicenseStatus($arr[$keys[5]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[6], $arr)) {
|
||||
$this->setLicenseData($arr[$keys[6]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[7], $arr)) {
|
||||
$this->setLicensePath($arr[$keys[7]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[8], $arr)) {
|
||||
$this->setLicenseWorkspace($arr[$keys[8]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[9], $arr)) {
|
||||
$this->setLicenseType($arr[$keys[9]]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -842,34 +875,44 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
if ($this->isColumnModified(LicenseManagerPeer::LICENSE_UID)) {
|
||||
$criteria->add(LicenseManagerPeer::LICENSE_UID, $this->license_uid);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(LicenseManagerPeer::LICENSE_USER)) {
|
||||
$criteria->add(LicenseManagerPeer::LICENSE_USER, $this->license_user);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(LicenseManagerPeer::LICENSE_START)) {
|
||||
$criteria->add(LicenseManagerPeer::LICENSE_START, $this->license_start);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(LicenseManagerPeer::LICENSE_END)) {
|
||||
$criteria->add(LicenseManagerPeer::LICENSE_END, $this->license_end);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(LicenseManagerPeer::LICENSE_SPAN)) {
|
||||
$criteria->add(LicenseManagerPeer::LICENSE_SPAN, $this->license_span);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(LicenseManagerPeer::LICENSE_STATUS)) {
|
||||
$criteria->add(LicenseManagerPeer::LICENSE_STATUS, $this->license_status);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(LicenseManagerPeer::LICENSE_DATA)) {
|
||||
$criteria->add(LicenseManagerPeer::LICENSE_DATA, $this->license_data);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(LicenseManagerPeer::LICENSE_PATH)) {
|
||||
$criteria->add(LicenseManagerPeer::LICENSE_PATH, $this->license_path);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(LicenseManagerPeer::LICENSE_WORKSPACE)) {
|
||||
$criteria->add(LicenseManagerPeer::LICENSE_WORKSPACE, $this->license_workspace);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(LicenseManagerPeer::LICENSE_TYPE)) {
|
||||
$criteria->add(LicenseManagerPeer::LICENSE_TYPE, $this->license_type);
|
||||
}
|
||||
|
||||
|
||||
return $criteria;
|
||||
}
|
||||
|
||||
@@ -892,7 +935,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
|
||||
/**
|
||||
* Returns the primary key for this object (row).
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPrimaryKey()
|
||||
@@ -942,9 +984,10 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||
|
||||
$copyObj->setLicenseType($this->license_type);
|
||||
|
||||
|
||||
$copyObj->setNew(true);
|
||||
|
||||
$copyObj->setLicenseUid( '' ); // this is a pkey column, so set to default value
|
||||
$copyObj->setLicenseUid(NULL); // this is a pkey column, so set to default value
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -10,91 +10,61 @@ include_once 'classes/model/LicenseManager.php';
|
||||
*
|
||||
*
|
||||
*
|
||||
* @package classes.model.om
|
||||
* @package workflow.classes.model.om
|
||||
*/
|
||||
abstract class BaseLicenseManagerPeer
|
||||
{
|
||||
|
||||
/**
|
||||
* the default database name for this class
|
||||
*/
|
||||
/** the default database name for this class */
|
||||
const DATABASE_NAME = 'workflow';
|
||||
|
||||
/**
|
||||
* the table name for this class
|
||||
*/
|
||||
/** the table name for this class */
|
||||
const TABLE_NAME = 'LICENSE_MANAGER';
|
||||
|
||||
/**
|
||||
* A class that can be returned by this peer.
|
||||
*/
|
||||
/** A class that can be returned by this peer. */
|
||||
const CLASS_DEFAULT = 'classes.model.LicenseManager';
|
||||
|
||||
/**
|
||||
* The total number of columns.
|
||||
*/
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 10;
|
||||
|
||||
/**
|
||||
* The number of lazy-loaded columns.
|
||||
*/
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
|
||||
/**
|
||||
* the column name for the LICENSE_UID field
|
||||
*/
|
||||
|
||||
/** the column name for the LICENSE_UID field */
|
||||
const LICENSE_UID = 'LICENSE_MANAGER.LICENSE_UID';
|
||||
|
||||
/**
|
||||
* the column name for the LICENSE_USER field
|
||||
*/
|
||||
/** the column name for the LICENSE_USER field */
|
||||
const LICENSE_USER = 'LICENSE_MANAGER.LICENSE_USER';
|
||||
|
||||
/**
|
||||
* the column name for the LICENSE_START field
|
||||
*/
|
||||
/** the column name for the LICENSE_START field */
|
||||
const LICENSE_START = 'LICENSE_MANAGER.LICENSE_START';
|
||||
|
||||
/**
|
||||
* the column name for the LICENSE_END field
|
||||
*/
|
||||
/** the column name for the LICENSE_END field */
|
||||
const LICENSE_END = 'LICENSE_MANAGER.LICENSE_END';
|
||||
|
||||
/**
|
||||
* the column name for the LICENSE_SPAN field
|
||||
*/
|
||||
/** the column name for the LICENSE_SPAN field */
|
||||
const LICENSE_SPAN = 'LICENSE_MANAGER.LICENSE_SPAN';
|
||||
|
||||
/**
|
||||
* the column name for the LICENSE_STATUS field
|
||||
*/
|
||||
/** the column name for the LICENSE_STATUS field */
|
||||
const LICENSE_STATUS = 'LICENSE_MANAGER.LICENSE_STATUS';
|
||||
|
||||
/**
|
||||
* the column name for the LICENSE_DATA field
|
||||
*/
|
||||
/** the column name for the LICENSE_DATA field */
|
||||
const LICENSE_DATA = 'LICENSE_MANAGER.LICENSE_DATA';
|
||||
|
||||
/**
|
||||
* the column name for the LICENSE_PATH field
|
||||
*/
|
||||
/** the column name for the LICENSE_PATH field */
|
||||
const LICENSE_PATH = 'LICENSE_MANAGER.LICENSE_PATH';
|
||||
|
||||
/**
|
||||
* the column name for the LICENSE_WORKSPACE field
|
||||
*/
|
||||
/** the column name for the LICENSE_WORKSPACE field */
|
||||
const LICENSE_WORKSPACE = 'LICENSE_MANAGER.LICENSE_WORKSPACE';
|
||||
|
||||
/**
|
||||
* the column name for the LICENSE_TYPE field
|
||||
*/
|
||||
/** the column name for the LICENSE_TYPE field */
|
||||
const LICENSE_TYPE = 'LICENSE_MANAGER.LICENSE_TYPE';
|
||||
|
||||
/**
|
||||
* The PHP to DB Name Mapping
|
||||
*/
|
||||
/** The PHP to DB Name Mapping */
|
||||
private static $phpNameMap = null;
|
||||
|
||||
|
||||
/**
|
||||
* holds an array of fieldnames
|
||||
*
|
||||
@@ -102,10 +72,10 @@ abstract class BaseLicenseManagerPeer
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('LicenseUid','LicenseUser','LicenseStart','LicenseEnd','LicenseSpan','LicenseStatus','LicenseData','LicensePath','LicenseWorkspace','LicenseType'),
|
||||
BasePeer::TYPE_COLNAME => array (LicenseManagerPeer::LICENSE_UID,LicenseManagerPeer::LICENSE_USER,LicenseManagerPeer::LICENSE_START,LicenseManagerPeer::LICENSE_END,LicenseManagerPeer::LICENSE_SPAN,LicenseManagerPeer::LICENSE_STATUS,LicenseManagerPeer::LICENSE_DATA,LicenseManagerPeer::LICENSE_PATH,LicenseManagerPeer::LICENSE_WORKSPACE,LicenseManagerPeer::LICENSE_TYPE),
|
||||
BasePeer::TYPE_FIELDNAME => array ('LICENSE_UID','LICENSE_USER','LICENSE_START','LICENSE_END','LICENSE_SPAN','LICENSE_STATUS','LICENSE_DATA','LICENSE_PATH','LICENSE_WORKSPACE','LICENSE_TYPE'),
|
||||
BasePeer::TYPE_NUM => array (0,1,2,3,4,5,6,7,8,9)
|
||||
BasePeer::TYPE_PHPNAME => array ('LicenseUid', 'LicenseUser', 'LicenseStart', 'LicenseEnd', 'LicenseSpan', 'LicenseStatus', 'LicenseData', 'LicensePath', 'LicenseWorkspace', 'LicenseType', ),
|
||||
BasePeer::TYPE_COLNAME => array (LicenseManagerPeer::LICENSE_UID, LicenseManagerPeer::LICENSE_USER, LicenseManagerPeer::LICENSE_START, LicenseManagerPeer::LICENSE_END, LicenseManagerPeer::LICENSE_SPAN, LicenseManagerPeer::LICENSE_STATUS, LicenseManagerPeer::LICENSE_DATA, LicenseManagerPeer::LICENSE_PATH, LicenseManagerPeer::LICENSE_WORKSPACE, LicenseManagerPeer::LICENSE_TYPE, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('LICENSE_UID', 'LICENSE_USER', 'LICENSE_START', 'LICENSE_END', 'LICENSE_SPAN', 'LICENSE_STATUS', 'LICENSE_DATA', 'LICENSE_PATH', 'LICENSE_WORKSPACE', 'LICENSE_TYPE', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -115,14 +85,13 @@ abstract class BaseLicenseManagerPeer
|
||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('LicenseUid' => 0,'LicenseUser' => 1,'LicenseStart' => 2,'LicenseEnd' => 3,'LicenseSpan' => 4,'LicenseStatus' => 5,'LicenseData' => 6,'LicensePath' => 7,'LicenseWorkspace' => 8,'LicenseType' => 9),
|
||||
BasePeer::TYPE_COLNAME => array (LicenseManagerPeer::LICENSE_UID => 0,LicenseManagerPeer::LICENSE_USER => 1,LicenseManagerPeer::LICENSE_START => 2,LicenseManagerPeer::LICENSE_END => 3,LicenseManagerPeer::LICENSE_SPAN => 4,LicenseManagerPeer::LICENSE_STATUS => 5,LicenseManagerPeer::LICENSE_DATA => 6,LicenseManagerPeer::LICENSE_PATH => 7,LicenseManagerPeer::LICENSE_WORKSPACE => 8,LicenseManagerPeer::LICENSE_TYPE => 9),
|
||||
BasePeer::TYPE_FIELDNAME => array ('LICENSE_UID' => 0,'LICENSE_USER' => 1,'LICENSE_START' => 2,'LICENSE_END' => 3,'LICENSE_SPAN' => 4,'LICENSE_STATUS' => 5,'LICENSE_DATA' => 6,'LICENSE_PATH' => 7,'LICENSE_WORKSPACE' => 8,'LICENSE_TYPE' => 9),
|
||||
BasePeer::TYPE_NUM => array (0,1,2,3,4,5,6,7,8,9)
|
||||
BasePeer::TYPE_PHPNAME => array ('LicenseUid' => 0, 'LicenseUser' => 1, 'LicenseStart' => 2, 'LicenseEnd' => 3, 'LicenseSpan' => 4, 'LicenseStatus' => 5, 'LicenseData' => 6, 'LicensePath' => 7, 'LicenseWorkspace' => 8, 'LicenseType' => 9, ),
|
||||
BasePeer::TYPE_COLNAME => array (LicenseManagerPeer::LICENSE_UID => 0, LicenseManagerPeer::LICENSE_USER => 1, LicenseManagerPeer::LICENSE_START => 2, LicenseManagerPeer::LICENSE_END => 3, LicenseManagerPeer::LICENSE_SPAN => 4, LicenseManagerPeer::LICENSE_STATUS => 5, LicenseManagerPeer::LICENSE_DATA => 6, LicenseManagerPeer::LICENSE_PATH => 7, LicenseManagerPeer::LICENSE_WORKSPACE => 8, LicenseManagerPeer::LICENSE_TYPE => 9, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('LICENSE_UID' => 0, 'LICENSE_USER' => 1, 'LICENSE_START' => 2, 'LICENSE_END' => 3, 'LICENSE_SPAN' => 4, 'LICENSE_STATUS' => 5, 'LICENSE_DATA' => 6, 'LICENSE_PATH' => 7, 'LICENSE_WORKSPACE' => 8, 'LICENSE_TYPE' => 9, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
* @return MapBuilder the map builder for this peer
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
@@ -132,7 +101,6 @@ abstract class BaseLicenseManagerPeer
|
||||
include_once 'classes/model/map/LicenseManagerMapBuilder.php';
|
||||
return BasePeer::getMapBuilder('classes.model.map.LicenseManagerMapBuilder');
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a map (hash) of PHP names to DB column names.
|
||||
*
|
||||
@@ -154,7 +122,6 @@ abstract class BaseLicenseManagerPeer
|
||||
}
|
||||
return self::$phpNameMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Translates a fieldname to another type
|
||||
*
|
||||
@@ -199,7 +166,6 @@ abstract class BaseLicenseManagerPeer
|
||||
* $c->addAlias("alias1", TablePeer::TABLE_NAME);
|
||||
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
||||
* </code>
|
||||
*
|
||||
* @param string $alias The alias for the current table.
|
||||
* @param string $column The column name for current table. (i.e. LicenseManagerPeer::COLUMN_NAME).
|
||||
* @return string
|
||||
@@ -282,7 +248,6 @@ abstract class BaseLicenseManagerPeer
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to select one object from the DB.
|
||||
*
|
||||
@@ -302,7 +267,6 @@ abstract class BaseLicenseManagerPeer
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to do selects.
|
||||
*
|
||||
@@ -316,7 +280,6 @@ abstract class BaseLicenseManagerPeer
|
||||
{
|
||||
return LicenseManagerPeer::populateObjects(LicenseManagerPeer::doSelectRS($criteria, $con));
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepares the Criteria object and uses the parent doSelect()
|
||||
* method to get a ResultSet.
|
||||
@@ -349,7 +312,6 @@ abstract class BaseLicenseManagerPeer
|
||||
// rows indexed numerically.
|
||||
return BasePeer::doSelect($criteria, $con);
|
||||
}
|
||||
|
||||
/**
|
||||
* The returned array will contain objects of the default type or
|
||||
* objects that inherit from the default.
|
||||
@@ -366,17 +328,17 @@ abstract class BaseLicenseManagerPeer
|
||||
$cls = Propel::import($cls);
|
||||
// populate the object(s)
|
||||
while ($rs->next()) {
|
||||
|
||||
$obj = new $cls();
|
||||
$obj->hydrate($rs);
|
||||
$results[] = $obj;
|
||||
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the TableMap related to this peer.
|
||||
* This method is not needed for general use but a specific application could have a need.
|
||||
*
|
||||
* @return TableMap
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
@@ -421,6 +383,7 @@ abstract class BaseLicenseManagerPeer
|
||||
$criteria = $values->buildCriteria(); // build Criteria from LicenseManager object
|
||||
}
|
||||
|
||||
|
||||
// Set the correct dbName
|
||||
$criteria->setDbName(self::DATABASE_NAME);
|
||||
|
||||
@@ -441,8 +404,8 @@ abstract class BaseLicenseManagerPeer
|
||||
/**
|
||||
* Method perform an UPDATE on the database, given a LicenseManager or Criteria object.
|
||||
*
|
||||
* @param mixed $values Criteria or LicenseManager object containing data that is used to create the UPDATE statement.
|
||||
* @param Connection $con The connection to use (specify Connection object to exert more control over transactions).
|
||||
* @param mixed $values Criteria or LicenseManager object containing data create the UPDATE statement.
|
||||
* @param Connection $con The connection to use (specify Connection exert more control over transactions).
|
||||
* @return int The number of affected rows (if supported by underlying database driver).
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
@@ -457,11 +420,11 @@ abstract class BaseLicenseManagerPeer
|
||||
|
||||
if ($values instanceof Criteria) {
|
||||
$criteria = clone $values; // rename for clarity
|
||||
|
||||
$comparison = $criteria->getComparison(LicenseManagerPeer::LICENSE_UID);
|
||||
$selectCriteria->add(LicenseManagerPeer::LICENSE_UID, $criteria->remove(LicenseManagerPeer::LICENSE_UID), $comparison);
|
||||
|
||||
} else {
|
||||
// $values is LicenseManager object
|
||||
$criteria = $values->buildCriteria(); // gets full criteria
|
||||
$selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
|
||||
}
|
||||
@@ -502,7 +465,8 @@ abstract class BaseLicenseManagerPeer
|
||||
* @param mixed $values Criteria or LicenseManager object or primary key or array of primary keys
|
||||
* which is used to create the DELETE statement
|
||||
* @param Connection $con the connection to use
|
||||
* @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows
|
||||
* @return int The number of affected rows (if supported by underlying database driver).
|
||||
* This includes CASCADE-related rows
|
||||
* if supported by native driver or if emulated using Propel.
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
@@ -516,6 +480,7 @@ abstract class BaseLicenseManagerPeer
|
||||
if ($values instanceof Criteria) {
|
||||
$criteria = clone $values; // rename for clarity
|
||||
} elseif ($values instanceof LicenseManager) {
|
||||
|
||||
$criteria = $values->buildPkeyCriteria();
|
||||
} else {
|
||||
// it must be the primary key
|
||||
@@ -563,9 +528,7 @@ abstract class BaseLicenseManagerPeer
|
||||
$tableMap = $dbMap->getTable(LicenseManagerPeer::TABLE_NAME);
|
||||
|
||||
if (! is_array($cols)) {
|
||||
$cols = array (
|
||||
$cols
|
||||
);
|
||||
$cols = array($cols);
|
||||
}
|
||||
|
||||
foreach ($cols as $colName) {
|
||||
@@ -598,6 +561,7 @@ abstract class BaseLicenseManagerPeer
|
||||
|
||||
$criteria->add(LicenseManagerPeer::LICENSE_UID, $pk);
|
||||
|
||||
|
||||
$v = LicenseManagerPeer::doSelect($criteria, $con);
|
||||
|
||||
return !empty($v) > 0 ? $v[0] : null;
|
||||
@@ -629,6 +593,7 @@ abstract class BaseLicenseManagerPeer
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// static code to register the map builder for this Peer with the main Propel class
|
||||
if (Propel::isInit()) {
|
||||
// the MapBuilder classes register themselves with Propel during initialization
|
||||
|
||||
@@ -1784,7 +1784,7 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
|
||||
$copyObj->setUsrUid(''); // this is a pkey column, so set to default value
|
||||
|
||||
$copyObj->setDelIndex('0'); // this is a pkey column, so set to default value
|
||||
$copyObj->setDelIndex(''); // this is a pkey column, so set to default value
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user