summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php')
-rw-r--r--framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php b/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php
index 1e799aac..a51c435d 100644
--- a/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php
+++ b/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php
@@ -26,6 +26,7 @@ class TPgsqlColumnMetaData extends TComponent
private $_default;
private $_length;
private $_notNull=true;
+ private $_property;
private $_isPrimary=null;
@@ -39,8 +40,9 @@ class TPgsqlColumnMetaData extends TComponent
* @param string serial name.
* @param string default value.
*/
- public function __construct($name,$type,$length,$notNull,$serial,$default)
+ public function __construct($property,$name,$type,$length,$notNull,$serial,$default)
{
+ $this->_property=$property;
$this->_name=$name;
$this->_type=$type;
$this->_length=$length;
@@ -57,6 +59,14 @@ class TPgsqlColumnMetaData extends TComponent
return $this->_name;
}
+ /**
+ * @return string column name, used as active record property name
+ */
+ public function getProperty()
+ {
+ return $this->_property;
+ }
+
public function getPHPType()
{
switch(strtolower($this->_type))