diff options
author | xue <> | 2007-10-13 11:27:42 +0000 |
---|---|---|
committer | xue <> | 2007-10-13 11:27:42 +0000 |
commit | d836550f3a36e09c3b491f6b6254172ecd2fee06 (patch) | |
tree | 98f04691631456343d4cfecda6d590c39d0f9e4a /framework/Data/ActiveRecord/Relations | |
parent | cc0b1e31584bb14a8715b0953cc9336fd4640d78 (diff) |
fixed belongs_to.
Diffstat (limited to 'framework/Data/ActiveRecord/Relations')
-rw-r--r-- | framework/Data/ActiveRecord/Relations/TActiveRecordBelongsTo.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordBelongsTo.php b/framework/Data/ActiveRecord/Relations/TActiveRecordBelongsTo.php index 805739c1..c030f2d2 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordBelongsTo.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordBelongsTo.php @@ -111,6 +111,8 @@ class TActiveRecordBelongsTo extends TActiveRecordRelation throw new TActiveRecordException('ar_belongs_to_multiple_result');
$source->$prop=$collections[$hash][0];
}
+ else
+ $source->$prop=null;
}
/**
|