This commit is contained in:
Paula Quispe
2018-02-20 12:02:35 -04:00
parent f5302ba138
commit 8b840c93ac

View File

@@ -28,6 +28,7 @@ class PmTable
private $alterTable = true;
private $keepData = false;
public $tableClassName = '';
private $columnsToExclude = ['APP_UID'];
public function __construct($tableName = null)
{
@@ -124,6 +125,24 @@ class PmTable
$this->dbConfig->adapter = $adapter;
}
/**
* Set ColumnsToExclude
*
* @param array $value
*/
public function setColumnsToExclude($value)
{
$this->columnsToExclude = $value;
}
/**
* Get ColumnsToExclude values
*/
public function getColumnsToExclude()
{
return $this->columnsToExclude;
}
/**
* Backward compatibility function
* Resolve a propel data source
@@ -954,7 +973,10 @@ class PmTable
if (in_array($fieldData["name"], $tableField)) {
$fieldTable = $fieldData["name"];
$fieldName = $tableName . "." . $fieldTable;
$oCriteria->addSelectColumn($fieldName);
//We are not include some columns for the search
if (!in_array($fieldTable, $this->getColumnsToExclude())){
$oCriteria->addSelectColumn($fieldName);
}
}
}