summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord/TActiveRecord.php
diff options
context:
space:
mode:
authorxue <>2007-09-29 22:07:12 +0000
committerxue <>2007-09-29 22:07:12 +0000
commit54e9feab491bcf8d1a95b486b68605cb4441e603 (patch)
treebffc84037861293872f5db616345888ffbd0e453 /framework/Data/ActiveRecord/TActiveRecord.php
parent109ff4ee3bec41d95a122c6a69ad204c5dcfe099 (diff)
Changed RELATIONS declaration.
Diffstat (limited to 'framework/Data/ActiveRecord/TActiveRecord.php')
-rw-r--r--framework/Data/ActiveRecord/TActiveRecord.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php
index 5cc6dee0..bf7b68d9 100644
--- a/framework/Data/ActiveRecord/TActiveRecord.php
+++ b/framework/Data/ActiveRecord/TActiveRecord.php
@@ -106,10 +106,20 @@ abstract class TActiveRecord extends TComponent
* and the values are logical column names as defined as public variable/property names
* for the corresponding active record class.
* @var array column mapping. Keys: physical column names, values: logical column names.
+ * @since 3.1.1
*/
public static $COLUMN_MAPPING=array();
/**
+ * This static variable defines the relationships.
+ * The keys are public variable/property names defined in the AR class.
+ * Each value is an array, e.g. array(self::HAS_MANY, 'PlayerRecord').
+ * @var array relationship.
+ * @since 3.1.1
+ */
+ public static $RELATIONS=array();
+
+ /**
* @var boolean true if this class is read only.
*/
private $_readOnly=false;