diff options
author | xue <> | 2007-09-29 22:07:12 +0000 |
---|---|---|
committer | xue <> | 2007-09-29 22:07:12 +0000 |
commit | 54e9feab491bcf8d1a95b486b68605cb4441e603 (patch) | |
tree | bffc84037861293872f5db616345888ffbd0e453 /framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php | |
parent | 109ff4ee3bec41d95a122c6a69ad204c5dcfe099 (diff) |
Changed RELATIONS declaration.
Diffstat (limited to 'framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php')
-rw-r--r-- | framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php b/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php index 16b29861..c9b47d12 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php @@ -68,11 +68,7 @@ class TActiveRecordRelationContext public function getRecordRelationships()
{
$class = new ReflectionClass($this->_sourceRecord);
- $statics = $class->getStaticProperties();
- if(isset($statics[self::RELATIONS_CONST]))
- return $statics[self::RELATIONS_CONST];
- else
- return array();
+ return $class->getStaticPropertyValue(self::RELATIONS_CONST);
}
public function getPropertyValue()
|