diff options
author | xue <> | 2008-01-15 14:52:18 +0000 |
---|---|---|
committer | xue <> | 2008-01-15 14:52:18 +0000 |
commit | d4ea1ed8348508b71dcbbf296a4e028f04567e1d (patch) | |
tree | 2343c076609b038451d26f831255a87a01957904 /framework | |
parent | de2b71e278f0c685238172c72828378dddb210d6 (diff) |
fixed a bug in calculating object hash.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php b/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php index 63e182ca..4c238801 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php @@ -161,7 +161,7 @@ abstract class TActiveRecordRelation {
$ids=array();
foreach($properties as $property)
- $ids[] = is_object($obj) ? $obj->getColumnValue($property) : $obj[$property];
+ $ids[] = is_object($obj) ? (string)$obj->getColumnValue($property) : (string)$obj[$property];
return serialize($ids);
}
|