summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord
diff options
context:
space:
mode:
authorxue <>2008-01-15 14:52:18 +0000
committerxue <>2008-01-15 14:52:18 +0000
commitd4ea1ed8348508b71dcbbf296a4e028f04567e1d (patch)
tree2343c076609b038451d26f831255a87a01957904 /framework/Data/ActiveRecord
parentde2b71e278f0c685238172c72828378dddb210d6 (diff)
fixed a bug in calculating object hash.
Diffstat (limited to 'framework/Data/ActiveRecord')
-rw-r--r--framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php2
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);
}