From 8b840c93ac27ef8fc0f6cc9bd2448df4504ed1b0 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Tue, 20 Feb 2018 12:02:35 -0400 Subject: [PATCH] HOR-4372 --- workflow/engine/classes/PmTable.php | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/workflow/engine/classes/PmTable.php b/workflow/engine/classes/PmTable.php index e0c592910..8b452b6f5 100644 --- a/workflow/engine/classes/PmTable.php +++ b/workflow/engine/classes/PmTable.php @@ -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); + } } }