diff options
author | wei <> | 2007-10-08 03:24:07 +0000 |
---|---|---|
committer | wei <> | 2007-10-08 03:24:07 +0000 |
commit | 4ceba82b9863f2c6323cbe00407e4bfbedbfc1cd (patch) | |
tree | bc93498b5bf77b25c5a2d5a87ffaa4f8a9b70728 /tests/simple_unit/ActiveRecord/records | |
parent | aedbfe04daaaa0baa8e97c4d7d13e8a1f9d867cb (diff) |
Allow active records to have multiple foreign key references to the same table. Add TXCache.
Diffstat (limited to 'tests/simple_unit/ActiveRecord/records')
-rw-r--r-- | tests/simple_unit/ActiveRecord/records/ItemRecord.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/simple_unit/ActiveRecord/records/ItemRecord.php b/tests/simple_unit/ActiveRecord/records/ItemRecord.php index 45d15427..52a1a658 100644 --- a/tests/simple_unit/ActiveRecord/records/ItemRecord.php +++ b/tests/simple_unit/ActiveRecord/records/ItemRecord.php @@ -21,7 +21,7 @@ class ItemRecord extends TActiveRecord public static $RELATIONS=array
(
- 'related_items' => array(self::HAS_MANY, 'ItemRecord', 'related_items.(related_item_id)'),
+ 'related_items' => array(self::MANY_TO_MANY, 'ItemRecord', 'related_items.related_item_id'),
);
public function getDbConnection()
|