diff options
author | wei <> | 2007-02-27 23:48:49 +0000 |
---|---|---|
committer | wei <> | 2007-02-27 23:48:49 +0000 |
commit | 7a9626af3bef5c712901597065745d9572c3f097 (patch) | |
tree | b63b6c5ef530004ac40d57c2b58ddca773bea05d /tests/simple_unit/ActiveRecord/records/DepartmentRecord.php | |
parent | 4c86659bc90d9134b0f901572c5417aa7d9cec18 (diff) |
BC: Deprecate TActiveRecord::getRecordFinder() in favour of TActiveRecord::finder().
Diffstat (limited to 'tests/simple_unit/ActiveRecord/records/DepartmentRecord.php')
-rw-r--r-- | tests/simple_unit/ActiveRecord/records/DepartmentRecord.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/simple_unit/ActiveRecord/records/DepartmentRecord.php b/tests/simple_unit/ActiveRecord/records/DepartmentRecord.php index 64ab39d0..be0f5fd1 100644 --- a/tests/simple_unit/ActiveRecord/records/DepartmentRecord.php +++ b/tests/simple_unit/ActiveRecord/records/DepartmentRecord.php @@ -1,5 +1,4 @@ -<?php -
+<?php
class DepartmentRecord extends TActiveRecord
{
public $department_id;
@@ -10,9 +9,9 @@ class DepartmentRecord extends TActiveRecord public static $_tablename = 'departments';
- public static function finder()
+ public static function finder($className=__CLASS__)
{
- return self::getRecordFinder('DepartmentRecord');
+ return parent::finder($className);
}
}
|