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); + } } }