HOR-1385 Agregar los campos INP_DOC_TITLE y INP_DOC_DESCRIPTION en la tabla INPUT_DOCUMENT
This commit is contained in:
@@ -39,6 +39,18 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $pro_uid = '0';
|
||||
|
||||
/**
|
||||
* The value for the inp_doc_title field.
|
||||
* @var string
|
||||
*/
|
||||
protected $inp_doc_title;
|
||||
|
||||
/**
|
||||
* The value for the inp_doc_description field.
|
||||
* @var string
|
||||
*/
|
||||
protected $inp_doc_description;
|
||||
|
||||
/**
|
||||
* The value for the inp_doc_form_needed field.
|
||||
* @var string
|
||||
@@ -129,6 +141,28 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
return $this->pro_uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [inp_doc_title] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getInpDocTitle()
|
||||
{
|
||||
|
||||
return $this->inp_doc_title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [inp_doc_description] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getInpDocDescription()
|
||||
{
|
||||
|
||||
return $this->inp_doc_description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [inp_doc_form_needed] column value.
|
||||
*
|
||||
@@ -272,6 +306,50 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
|
||||
} // setProUid()
|
||||
|
||||
/**
|
||||
* Set the value of [inp_doc_title] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setInpDocTitle($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->inp_doc_title !== $v) {
|
||||
$this->inp_doc_title = $v;
|
||||
$this->modifiedColumns[] = InputDocumentPeer::INP_DOC_TITLE;
|
||||
}
|
||||
|
||||
} // setInpDocTitle()
|
||||
|
||||
/**
|
||||
* Set the value of [inp_doc_description] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setInpDocDescription($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->inp_doc_description !== $v) {
|
||||
$this->inp_doc_description = $v;
|
||||
$this->modifiedColumns[] = InputDocumentPeer::INP_DOC_DESCRIPTION;
|
||||
}
|
||||
|
||||
} // setInpDocDescription()
|
||||
|
||||
/**
|
||||
* Set the value of [inp_doc_form_needed] column.
|
||||
*
|
||||
@@ -491,30 +569,34 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
|
||||
$this->pro_uid = $rs->getString($startcol + 1);
|
||||
|
||||
$this->inp_doc_form_needed = $rs->getString($startcol + 2);
|
||||
$this->inp_doc_title = $rs->getString($startcol + 2);
|
||||
|
||||
$this->inp_doc_original = $rs->getString($startcol + 3);
|
||||
$this->inp_doc_description = $rs->getString($startcol + 3);
|
||||
|
||||
$this->inp_doc_published = $rs->getString($startcol + 4);
|
||||
$this->inp_doc_form_needed = $rs->getString($startcol + 4);
|
||||
|
||||
$this->inp_doc_versioning = $rs->getInt($startcol + 5);
|
||||
$this->inp_doc_original = $rs->getString($startcol + 5);
|
||||
|
||||
$this->inp_doc_destination_path = $rs->getString($startcol + 6);
|
||||
$this->inp_doc_published = $rs->getString($startcol + 6);
|
||||
|
||||
$this->inp_doc_tags = $rs->getString($startcol + 7);
|
||||
$this->inp_doc_versioning = $rs->getInt($startcol + 7);
|
||||
|
||||
$this->inp_doc_type_file = $rs->getString($startcol + 8);
|
||||
$this->inp_doc_destination_path = $rs->getString($startcol + 8);
|
||||
|
||||
$this->inp_doc_max_filesize = $rs->getInt($startcol + 9);
|
||||
$this->inp_doc_tags = $rs->getString($startcol + 9);
|
||||
|
||||
$this->inp_doc_max_filesize_unit = $rs->getString($startcol + 10);
|
||||
$this->inp_doc_type_file = $rs->getString($startcol + 10);
|
||||
|
||||
$this->inp_doc_max_filesize = $rs->getInt($startcol + 11);
|
||||
|
||||
$this->inp_doc_max_filesize_unit = $rs->getString($startcol + 12);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 11; // 11 = InputDocumentPeer::NUM_COLUMNS - InputDocumentPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 13; // 13 = InputDocumentPeer::NUM_COLUMNS - InputDocumentPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating InputDocument object", $e);
|
||||
@@ -725,30 +807,36 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
return $this->getProUid();
|
||||
break;
|
||||
case 2:
|
||||
return $this->getInpDocFormNeeded();
|
||||
return $this->getInpDocTitle();
|
||||
break;
|
||||
case 3:
|
||||
return $this->getInpDocOriginal();
|
||||
return $this->getInpDocDescription();
|
||||
break;
|
||||
case 4:
|
||||
return $this->getInpDocPublished();
|
||||
return $this->getInpDocFormNeeded();
|
||||
break;
|
||||
case 5:
|
||||
return $this->getInpDocVersioning();
|
||||
return $this->getInpDocOriginal();
|
||||
break;
|
||||
case 6:
|
||||
return $this->getInpDocDestinationPath();
|
||||
return $this->getInpDocPublished();
|
||||
break;
|
||||
case 7:
|
||||
return $this->getInpDocTags();
|
||||
return $this->getInpDocVersioning();
|
||||
break;
|
||||
case 8:
|
||||
return $this->getInpDocTypeFile();
|
||||
return $this->getInpDocDestinationPath();
|
||||
break;
|
||||
case 9:
|
||||
return $this->getInpDocMaxFilesize();
|
||||
return $this->getInpDocTags();
|
||||
break;
|
||||
case 10:
|
||||
return $this->getInpDocTypeFile();
|
||||
break;
|
||||
case 11:
|
||||
return $this->getInpDocMaxFilesize();
|
||||
break;
|
||||
case 12:
|
||||
return $this->getInpDocMaxFilesizeUnit();
|
||||
break;
|
||||
default:
|
||||
@@ -773,15 +861,17 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
$result = array(
|
||||
$keys[0] => $this->getInpDocUid(),
|
||||
$keys[1] => $this->getProUid(),
|
||||
$keys[2] => $this->getInpDocFormNeeded(),
|
||||
$keys[3] => $this->getInpDocOriginal(),
|
||||
$keys[4] => $this->getInpDocPublished(),
|
||||
$keys[5] => $this->getInpDocVersioning(),
|
||||
$keys[6] => $this->getInpDocDestinationPath(),
|
||||
$keys[7] => $this->getInpDocTags(),
|
||||
$keys[8] => $this->getInpDocTypeFile(),
|
||||
$keys[9] => $this->getInpDocMaxFilesize(),
|
||||
$keys[10] => $this->getInpDocMaxFilesizeUnit(),
|
||||
$keys[2] => $this->getInpDocTitle(),
|
||||
$keys[3] => $this->getInpDocDescription(),
|
||||
$keys[4] => $this->getInpDocFormNeeded(),
|
||||
$keys[5] => $this->getInpDocOriginal(),
|
||||
$keys[6] => $this->getInpDocPublished(),
|
||||
$keys[7] => $this->getInpDocVersioning(),
|
||||
$keys[8] => $this->getInpDocDestinationPath(),
|
||||
$keys[9] => $this->getInpDocTags(),
|
||||
$keys[10] => $this->getInpDocTypeFile(),
|
||||
$keys[11] => $this->getInpDocMaxFilesize(),
|
||||
$keys[12] => $this->getInpDocMaxFilesizeUnit(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -820,30 +910,36 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
$this->setProUid($value);
|
||||
break;
|
||||
case 2:
|
||||
$this->setInpDocFormNeeded($value);
|
||||
$this->setInpDocTitle($value);
|
||||
break;
|
||||
case 3:
|
||||
$this->setInpDocOriginal($value);
|
||||
$this->setInpDocDescription($value);
|
||||
break;
|
||||
case 4:
|
||||
$this->setInpDocPublished($value);
|
||||
$this->setInpDocFormNeeded($value);
|
||||
break;
|
||||
case 5:
|
||||
$this->setInpDocVersioning($value);
|
||||
$this->setInpDocOriginal($value);
|
||||
break;
|
||||
case 6:
|
||||
$this->setInpDocDestinationPath($value);
|
||||
$this->setInpDocPublished($value);
|
||||
break;
|
||||
case 7:
|
||||
$this->setInpDocTags($value);
|
||||
$this->setInpDocVersioning($value);
|
||||
break;
|
||||
case 8:
|
||||
$this->setInpDocTypeFile($value);
|
||||
$this->setInpDocDestinationPath($value);
|
||||
break;
|
||||
case 9:
|
||||
$this->setInpDocMaxFilesize($value);
|
||||
$this->setInpDocTags($value);
|
||||
break;
|
||||
case 10:
|
||||
$this->setInpDocTypeFile($value);
|
||||
break;
|
||||
case 11:
|
||||
$this->setInpDocMaxFilesize($value);
|
||||
break;
|
||||
case 12:
|
||||
$this->setInpDocMaxFilesizeUnit($value);
|
||||
break;
|
||||
} // switch()
|
||||
@@ -878,39 +974,47 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[2], $arr)) {
|
||||
$this->setInpDocFormNeeded($arr[$keys[2]]);
|
||||
$this->setInpDocTitle($arr[$keys[2]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[3], $arr)) {
|
||||
$this->setInpDocOriginal($arr[$keys[3]]);
|
||||
$this->setInpDocDescription($arr[$keys[3]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[4], $arr)) {
|
||||
$this->setInpDocPublished($arr[$keys[4]]);
|
||||
$this->setInpDocFormNeeded($arr[$keys[4]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[5], $arr)) {
|
||||
$this->setInpDocVersioning($arr[$keys[5]]);
|
||||
$this->setInpDocOriginal($arr[$keys[5]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[6], $arr)) {
|
||||
$this->setInpDocDestinationPath($arr[$keys[6]]);
|
||||
$this->setInpDocPublished($arr[$keys[6]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[7], $arr)) {
|
||||
$this->setInpDocTags($arr[$keys[7]]);
|
||||
$this->setInpDocVersioning($arr[$keys[7]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[8], $arr)) {
|
||||
$this->setInpDocTypeFile($arr[$keys[8]]);
|
||||
$this->setInpDocDestinationPath($arr[$keys[8]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[9], $arr)) {
|
||||
$this->setInpDocMaxFilesize($arr[$keys[9]]);
|
||||
$this->setInpDocTags($arr[$keys[9]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[10], $arr)) {
|
||||
$this->setInpDocMaxFilesizeUnit($arr[$keys[10]]);
|
||||
$this->setInpDocTypeFile($arr[$keys[10]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[11], $arr)) {
|
||||
$this->setInpDocMaxFilesize($arr[$keys[11]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[12], $arr)) {
|
||||
$this->setInpDocMaxFilesizeUnit($arr[$keys[12]]);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -932,6 +1036,14 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
$criteria->add(InputDocumentPeer::PRO_UID, $this->pro_uid);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(InputDocumentPeer::INP_DOC_TITLE)) {
|
||||
$criteria->add(InputDocumentPeer::INP_DOC_TITLE, $this->inp_doc_title);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(InputDocumentPeer::INP_DOC_DESCRIPTION)) {
|
||||
$criteria->add(InputDocumentPeer::INP_DOC_DESCRIPTION, $this->inp_doc_description);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(InputDocumentPeer::INP_DOC_FORM_NEEDED)) {
|
||||
$criteria->add(InputDocumentPeer::INP_DOC_FORM_NEEDED, $this->inp_doc_form_needed);
|
||||
}
|
||||
@@ -1024,6 +1136,10 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
|
||||
$copyObj->setProUid($this->pro_uid);
|
||||
|
||||
$copyObj->setInpDocTitle($this->inp_doc_title);
|
||||
|
||||
$copyObj->setInpDocDescription($this->inp_doc_description);
|
||||
|
||||
$copyObj->setInpDocFormNeeded($this->inp_doc_form_needed);
|
||||
|
||||
$copyObj->setInpDocOriginal($this->inp_doc_original);
|
||||
|
||||
Reference in New Issue
Block a user